Skip to main content
All docs
V25.2
  • TdxCustomDashboardControl.ExportToGIF(string) Method

    Exports dashboard content to a file in the Graphics Interchange Format (GIF).

    Declaration

    procedure ExportToGIF(const AFileName: string); overload;

    Parameters

    Name Type Description
    AFileName string

    An absolute or relative path to the target file.

    Remarks

    Call the ExportToGIF procedure to export dashboard content to a file in the GIF format.

    End-User Functionality

    A user can click an Export To button within the TdxDashboardControl component or the Dashboard Viewer dialog:

    VCL Dashboards: An "Export Formats" Menu Example in the Dashboard Viewer Dialog

    Export To Image

    A click on the Image menu item displays the Export To Image dialog designed to select the required format and associated export settings:

    VCL Dashboards: Image Export Settings

    Code Example: Export Dashboard Content to GIF File

    The following code example exports content of a configured TdxDashboardControl component to a file in the GIF format:

    uses
      dxDashboard.Control,  // Declares the TdxDashboardControl component
      dxShellDialogs;       // Declares the TdxSaveFileDialog component
    // ...
    
    procedure TMyForm.cxButtonExportToGIFClick(Sender: TObject);
    begin
      if not dxSaveFileDialog1.Execute(Handle) then Exit; // Displays the "Save File" dialog
      dxDashboardControl1.ExportToGIF(dxSaveFileDialog1.FileName);  // Saves the dashboard control to a file
    end;
    

    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.

    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\ExpressDashboards\

    Other Export Methods

    Export to File

    ExportTo
    Exports dashboard content to a stream in any supported format.
    ExportToCSV
    Exports dashboard content to a file in the comma-separated values (CSV) format.
    ExportToJPG
    Exports dashboard content to a file in the Joint Photographic Experts Group (JPEG/JPG) format.
    ExportToPDF
    Exports dashboard content to a file in the Portable Document Format (PDF).
    ExportToPNG
    Exports dashboard content to a file in the Portable Network Graphics (PNG) format.
    ExportToSVG
    Exports dashboard content to a file in the Scalable Vector Graphics (SVG) format.
    ExportToXLS
    Exports dashboard content to a file in the Microsoft Excel® binary format (XLS).
    ExportToXLSX
    Exports dashboard content to a file in the Office OpenXML Spreadsheet Format (XLSX).

    Export to Stream

    ExportTo
    Exports dashboard content to a stream in any supported format.
    ExportToCSV
    Exports dashboard content to a stream in the comma-separated values (CSV) format.
    ExportToGIF
    Exports dashboard content to a stream in the Graphics Interchange Format (GIF).
    ExportToJPG
    Exports dashboard content to a stream in the Joint Photographic Experts Group (JPEG/JPG) format.
    ExportToPDF
    Exports dashboard content to a stream in the Portable Document Format (PDF).
    ExportToPNG
    Exports dashboard content to a stream in the Portable Network Graphics (PNG) format.
    ExportToSVG
    Exports dashboard content to a stream in the Scalable Vector Graphics (SVG) format.
    ExportToXLS
    Exports dashboard content to a stream in the Microsoft Excel® binary format (XLS).
    ExportToXLSX
    Exports dashboard content to a stream in the Office OpenXML Spreadsheet Format (XLSX).
    See Also