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.v18.2.Core.dll
Declaration
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