GridControl.ShowRibbonPrintPreview() Method
Displays the Print Preview window with a Ribbon UI.
Namespace: DevExpress.XtraGrid
Assembly: DevExpress.XtraGrid.v24.2.dll
Declaration
Remarks
The ShowRibbonPrintPreview method shows a print preview of the data displayed by the Grid Control’s GridControl.DefaultView (the GridControl.MainView or the currently maximized detail View). The opened print preview window is built using a Ribbon UI. To display the Print Preview window with a Bars UI, use the GridControl.ShowPrintPreview method.
The grid control can be previewed and printed if the XtraPrinting Library is available. To check if printing and previewing the grid control is allowed, use the GridControl.IsPrintingAvailable property.
To print the data without showing a print preview, use GridControl.Print or GridControl.PrintDialog.
See Printing Overview to learn more.