Back to Devexpress

TdxReport.ExportTo(TdxReportExportFormat,TStream) Method

vcl-dxreport-dot-tdxreport-dot-exportto-x28-dxbackend-dot-tdxreportexportformat-system-dot-classes-dot-tstream-x29.md

latest3.8 KB
Original Source

TdxReport.ExportTo(TdxReportExportFormat,TStream) Method

Exports report content to a stream in any supported format.

Declaration

delphi
procedure ExportTo(AFormat: TdxReportExportFormat; AStream: TStream); overload;

Parameters

NameTypeDescription
AFormatTdxReportExportFormat

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 in any supported format.

Available Export Formats

AFormat Parameter ValueContent FormatFormat-Specific Export Method
TdxReportExportFormat.CSVComma-Separated Values (CSV)ExportToCSV
TdxReportExportFormat.DOCXOffice Open XML Document (DOCX)ExportToDOCX
TdxReportExportFormat.HTMLHypertext Markup Language (HTML)ExportToHTML
TdxReportExportFormat.ImageThe current image format (selected in the Report Designer dialog)ExportToImage
TdxReportExportFormat.MHTMIME HTML Document Format (MHT/MHTML)ExportToMHT
TdxReportExportFormat.PDFPortable Document Format (PDF)ExportToPDF
TdxReportExportFormat.RTFRich Text Format (RTF)ExportToRTF
TdxReportExportFormat.TextPlain Text Format (TXT)ExportToText
TdxReportExportFormat.XLSMicrosoft Excel® Binary Format (XLS)ExportToXLS
TdxReportExportFormat.XLSXOffice 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.

Download: Compiled VCL Demos

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

TdxDashboard.ExportTo Procedure

TdxReport Class

TdxReport Members

dxReport Unit