Skip to main content

DataViewBase.ShowPrintPreview(FrameworkElement) Method

Creates the print document from the DataViewBase (or its inheritor) and displays a Print Preview of the document.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v23.2.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public void ShowPrintPreview(
    FrameworkElement owner
)

Parameters

Name Type Description
owner FrameworkElement

The owner of the Print Preview.

Remarks

The Print Preview displays the printed document’s appearance. The Print Preview window allows end users to print the document and export it to a file in the required format.

View Example

void Print_Data(object sender, RoutedEventArgs e) {
    view.ShowPrintPreview(this);
}

Note

You can preview, print, and export the control’s data only if the DXPrinting Library is available.

Refer to the following topics for more information on how to print data:

See Also