vcl-dxreport-dot-tdxreport-dot-exportto-x28-dxbackend-dot-tdxreportexportformat-system-dot-classes-dot-tstream-x29.md
Exports report content to a stream in any supported format.
procedure ExportTo(AFormat: TdxReportExportFormat; AStream: TStream); overload;
| Name | Type | Description |
|---|---|---|
| AFormat | TdxReportExportFormat |
The target export format. Refer to the following section for details: Available Export Formats.
| | AStream | TStream |
The target stream.
|
Call the ExportTo procedure to export report content to a stream in any supported format.
| AFormat Parameter Value | Content Format | Format-Specific Export Method |
|---|---|---|
| TdxReportExportFormat.CSV | Comma-Separated Values (CSV) | ExportToCSV |
| TdxReportExportFormat.DOCX | Office Open XML Document (DOCX) | ExportToDOCX |
| TdxReportExportFormat.HTML | Hypertext Markup Language (HTML) | ExportToHTML |
| TdxReportExportFormat.Image | The current image format (selected in the Report Designer dialog) | ExportToImage |
| TdxReportExportFormat.MHT | MIME HTML Document Format (MHT/MHTML) | ExportToMHT |
| TdxReportExportFormat.PDF | Portable Document Format (PDF) | ExportToPDF |
| TdxReportExportFormat.RTF | Rich Text Format (RTF) | ExportToRTF |
| TdxReportExportFormat.Text | Plain Text Format (TXT) | ExportToText |
| TdxReportExportFormat.XLS | Microsoft Excel® Binary Format (XLS) | ExportToXLS |
| TdxReportExportFormat.XLSX | Office Open XML Spreadsheet (XLSX) | ExportToXLSX |
To see the report export functionality in action, run the Report Designer/Viewer demo in the VCL Demo Center installed with compiled DevExpress VCL demos. Select any demo in the sidebar on the left, click the Export button, and use any export option listed in the menu.
Tip
You can find full source code for the installed compiled Report demo in the following folder:
_%PUBLIC%\Documents\DevExpress VCL Demos\MegaDemos\Product Demos\ExpressReports_
See Also
TdxReport.ExportTo(dxBackend.TdxReportExportFormat,System.Classes.TStream,System.String) Procedure
TdxCustomDashboardControl.ExportTo Procedure