Skip to main content
A newer version of this page is available. .

DataViewBase.ShowPrintPreviewDialog(Window) Method

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

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v19.1.Core.dll

Declaration

public void ShowPrintPreviewDialog(
    Window owner
)

Parameters

Name Type Description
owner Window

A Window instance specifying the owner of the Print Preview.

Remarks

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

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

See Also