TdxCustomDashboardControl.ExportTo(TdxDashboardExportFormat,TStream) Method
Exports dashboard content to a stream in any supported format.
Declaration
procedure ExportTo(AFormat: TdxDashboardExportFormat; AStream: TStream); overload;
Parameters
| Name | Type | Description |
|---|---|---|
| AFormat | TdxDashboardExportFormat | 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 dashboard content to a stream in any supported format.
The ExportTimeout property allows you to set a timeout interval (in milliseconds) for export operations. If the specified export timeout is reached, an exception is thrown.
Available Export Formats
| AFormat Parameter Value | Content Format | Format-Specific Export Method |
|---|---|---|
| TdxDashboardExportFormat.CSV | Comma-Separated Values | ExportToCSV |
| TdxDashboardExportFormat.GIF | Graphics Interchange Format (GIF) | ExportToGIF |
| TdxDashboardExportFormat.JPG | Joint Photographic Experts Group (JPEG) | ExportToJPG |
| TdxDashboardExportFormat.PDF | Portable Document Format (PDF) | ExportToPDF |
| TdxDashboardExportFormat.PNG | Portable Network Graphics (PNG) | ExportToPNG |
| TdxDashboardExportFormat.SVG | Scalable Vector Graphics (SVG) | ExportToSVG |
| TdxDashboardExportFormat.XLS | Microsoft Excel® Binary Format (XLS) | ExportToXLS |
| TdxDashboardExportFormat.XLSX | Office OpenXML Spreadsheet Format (XLSX) | ExportToXLSX |
Related Compiled Demo
To see the dashboard export functionality in action, run the BI Dashboards 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\ExpressDashboards\