DataViewBase.PrintDirect() Method
Prints the grid using the default printer.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v19.1.Core.dll
Declaration
Remarks
Use the PrintDirect method without parameters, to immediately send the grid to a default printer, and the PrintDirect method with the queue parameter, to send the grid to a specific printer. Also, you can use the DataViewBase.Print method to print the grid using custom printing settings, specified by an end-user via the Print dialog.
To display the Print Preview of the grid, use the DataViewBase.ShowPrintPreview and DataViewBase.ShowPrintPreviewDialog methods. To export the grid, use the appropriate ExportTo~ method (e.g. DataViewBase.ExportToHtml, DataViewBase.ExportToPdf, etc.)
Note
The grid can be previewed, printed and exported only if the DXPrinting Library is available.