GridControl.ShowRibbonPrintPreview() Method

Displays the Print Preview window with a Ribbon UI.

Namespace: DevExpress.XtraGrid

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

public void ShowRibbonPrintPreview()
Public Sub ShowRibbonPrintPreview

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.

See Also