TdxReport.ExportTo(TdxReportExportFormat,TStream) Method
Exports report content to a stream in any supported format.
Declaration
procedure ExportTo(AFormat: TdxReportExportFormat; AStream: TStream);
Parameters
Name | Type | Description |
---|---|---|
AFormat | TdxReportExportFormat | The target export format. Refer to the following section for details: Available Export Formats. |
AStream | TStream | The target stream. |
Remarks
Call the ExportTo
procedure to export report content to a stream (as a synchronous operation) in any supported format. The ExportTimeout property specifies the timeout interval for synchronous export operations.
Available Export Formats
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 |
Asynchronous Export Operations
Call the StartExportAsync procedure to initiate an asynchronous report export operation. To receive asynchronous export results, handle the OnExported event.
See Also