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

GridControl.ShowRibbonPrintPreview() Method

Displays the Print Preview window with a Ribbon UI.

Namespace: DevExpress.XtraGrid

Assembly: DevExpress.XtraGrid.v19.1.dll

Declaration

public void 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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowRibbonPrintPreview() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also