The ReportPrintTool.ShowPreviewDialog method is a method in the DevExpress.XtraPrinting namespace of the DevExpress reporting library in C#.
This method is used to display the preview dialog box for a report. It allows users to preview the report before printing or exporting it to various formats.
Example 1:
ReportPrintTool printTool = new ReportPrintTool(report); printTool.ShowPreviewDialog();
This code creates a new instance of the ReportPrintTool class and sets the report to be printed. The ShowPreviewDialog method is then called to display the preview dialog box.
Example 2:
ReportPrintTool printTool = new ReportPrintTool(report); printTool.PrintDialog();
This code is similar to the first example, but it calls the PrintDialog method instead of ShowPreviewDialog. This displays the print dialog box for the report.
Example 3:
ReportPrintTool printTool = new ReportPrintTool(report); printTool.ExportToPdf(@"C:\Temp\output.pdf");
This code creates a new instance of the ReportPrintTool class and sets the report to be printed. The ExportToPdf method is then called to export the report to a PDF file.
Package Library:
The ReportPrintTool class is part of the DevExpress reporting library, which is included in the DevExpress reporting suite. The library can be downloaded as a package from the NuGet package manager in Visual Studio. The package library is called DevExpress.XtraReports.
C# (CSharp) ReportPrintTool.ShowPreviewDialog - 49 examples found. These are the top rated real world C# (CSharp) examples of ReportPrintTool.ShowPreviewDialog extracted from open source projects. You can rate examples to help us improve the quality of examples.