

The report’s page headers, footers, and top and bottom margins appear on every page, exactly as they appear in the report’s Preview. Each file contains one page that corresponds to a report document page. The report is exported into multiple files. Each page corresponds to a report document page. The report is exported into one file that contains multiple pages.

The report’s page headers, footers, top and bottom margins appear only once, at the beginning and end of the resulting page. The report is exported into one file that contains one page. Set the ExportOptions.ExportMode property to one of the values below to specify the report document’s export mode: You can use the CancellationToken parameter to cancel the report export.

Devexpress copy report file pdf#
' Set a password to open the PDF export file. Report.ExportToPdf(Environment.GetFolderPath() + + report.Name + ".pdf")

Set a password to open the PDF export file. Call a report’s export method and pass an ExportOptionsBase descendant class instance as a parameter in order to specify export options: Export FormatĮxportToPdfAsync(String, PdfExportOptions, CancellationToken)ĮxportToDocxAsync(String, Doc圎xportOptions, CancellationToken)ĮxportToRtfAsync(String, RtfExportOptions, CancellationToken)ĮxportToImage(String, ImageExportOptions)ĮxportToImageAsync(String, ImageExportOptions, CancellationToken)ĮxportToCsvAsync(String, CsvExportOptions, CancellationToken)ĮxportToTextAsync(String, TextExportOptions, CancellationToken)ĮxportToXlsAsync(String, XlsExportOptions, CancellationToken)ĮxportToXlsxAsync(String, Xls圎xportOptions, CancellationToken)ĮxportToHtmlAsync(String, HtmlExportOptions, CancellationToken)ĮxportToMhtAsync(String, MhtExportOptions, CancellationToken)ĮxportToMailAsync(MailMessageExportOptions, CancellationToken) Export in CodeĪt runtime, the XtraReport class provides methods to export a report document to all supported export formats. For this, use the VisualExportTool class.
Devexpress copy report file code#
You can start export in code and invoke the Export Options dialog to enable the user to specify export options. Specify export options in the invoked dialog, and click OK. Switch to Preview, expand the Export Document drop-down list and select the format to which you wish to export. Specify the XtraReport.DisplayName property, the property value is the default report export file name. In the Report Designer, specify export options for the selected format. You can export a report from the Report Designer’s Preview and from the Document Viewer on all supported platforms ( WinForms, WPF, ASP.NET Web Forms, ASP.NET MVC, and ASP.NET Core). You can export a report document to multiple formats.
