Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PivotGridControl.ShowPrintPreview(FrameworkElement, String) Method

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

Namespace: DevExpress.Xpf.PivotGrid

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

NuGet Package: DevExpress.Wpf.PivotGrid

#Declaration

public void ShowPrintPreview(
    FrameworkElement owner,
    string documentName
)

#Parameters

Name Type Description
owner FrameworkElement

A FrameworkElement instance specifying the owner of the Print Preview.

documentName String

A String value specifying what name should be used for the document to be displayed in 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