Back to Devexpress

PivotGridControl.ShowRibbonPrintPreviewDialog(FrameworkElement, String, String) Method

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-pivotgridcontrol-dot-showribbonprintpreviewdialog-x28-system-dot-windows-dot-frameworkelement-system-dot-string-system-dot-string-x29.md

latest2.9 KB
Original Source

PivotGridControl.ShowRibbonPrintPreviewDialog(FrameworkElement, String, String) Method

Creates the printable document and displays the modal Print Preview dialog with the Ribbon , using the specified owner, document name and window title.

Namespace : DevExpress.Xpf.PivotGrid

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

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public void ShowRibbonPrintPreviewDialog(
    FrameworkElement owner,
    string documentName,
    string title
)
vb
Public Sub ShowRibbonPrintPreviewDialog(
    owner As FrameworkElement,
    documentName As String,
    title As String
)

Parameters

NameTypeDescription
ownerFrameworkElement

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.

| | title | String |

A String value specifying the title 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.)

For more information, review the Printing and Exporting topic.

See Also

PivotGridControl Class

PivotGridControl Members

DevExpress.Xpf.PivotGrid Namespace