using DevExpress.XtraReports.UI; // ... XtraReport report = new XtraReport(); // ... ReportPrintTool printTool = new ReportPrintTool(report); printTool.ShowPreview();
using DevExpress.XtraReports.UI; // ... XtraReport report = new XtraReport(); // ... report.CreateDocument(); ReportPrintTool printTool = new ReportPrintTool(report); printTool.ShowPreviewDialog();This example is similar to Example 1, but instead of calling ShowPreview, the ShowPreviewDialog method is used to display the report in a modal Preview dialog. Package Library: DevExpress.XtraReports.v20.2.UI.