Back to Devexpress

PivotGridControl.ShowPrintPreviewDialog(Window) Method

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-pivotgridcontrol-dot-showprintpreviewdialog-x28-system-dot-windows-dot-window-x29.md

latest2.2 KB
Original Source

PivotGridControl.ShowPrintPreviewDialog(Window) Method

Creates the print document from the PivotGridControl and displays the modal Print Preview of the document, using the specified owner.

Namespace : DevExpress.Xpf.PivotGrid

Assembly : DevExpress.Xpf.PivotGrid.v25.2.dll

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public void ShowPrintPreviewDialog(
    Window owner
)
vb
Public Sub ShowPrintPreviewDialog(
    owner As Window
)

Parameters

NameTypeDescription
ownerWindow

A Window instance, specifying the owner of the Print Preview.

|

Remarks

The Print Preview displays the pivot grid as it will appear when printed. Note that the pivot grid can be previewed and printed only if the DXPrinting Library is available.

To print the pivot grid, use the PivotGridControl.PrintDirect and PivotGridControl.Print methods. To export the pivot grid, use the appropriate ExportTo~ method (e.g. PivotGridControl.ExportToHtml, PivotGridControl.ExportToPdf, etc.)

To learn more, see Printing and Exporting.

See Also

PivotGridControl Class

PivotGridControl Members

DevExpress.Xpf.PivotGrid Namespace