Opens the report document in the ribbon-based Print Preview form modally.
public static void ShowRibbonPreviewDialog( this IReport report )
<ExtensionAttribute> Public Shared Sub ShowRibbonPreviewDialog( report As IReport )
An object implementing the IReport interface.
Call the ShowRibbonPreviewDialog method to open the report in the default Print Preview form with a Ribbon Toolbar modally.
To be able to use this method, you should add the DevExpress.XtraPrinting.v20.2.dll to your project's References list.
using DevExpress.XtraReports.UI; // ... XtraReport1 report = new XtraReport1(); report.ShowRibbonPreviewDialog();
We recommend you use the ReportPrintTool class instead, which provides the similar PrintTool.ShowRibbonPreviewDialog method and additionally allows you to customize the Print Preivew form. This class also enables you to release the memory right after showing this form (for instance, by calling the Dispose method or utilizing the using statement).
You cannot use the ShowRibbonPreviewDialog method in Web applications. Use the Web Document Viewer instead.