Skip to main content
All docs
V25.2
  • HeatmapControl.ExportToXlsx(String, XlsxExportOptions) Method

    SECURITY-RELATED CONSIDERATIONS

    Using file paths sourced from untrusted input may expose unauthorized files or allow unintended file access. Always validate and normalize all external paths to prevent path manipulation.

    Exports the diagram to an XLSX file with given parameters.

    Namespace: DevExpress.XtraCharts.Heatmap

    Assembly: DevExpress.XtraCharts.v25.2.UI.dll

    NuGet Package: DevExpress.Win.Charts

    Declaration

    public void ExportToXlsx(
        string filePath,
        XlsxExportOptions options = null
    )

    Parameters

    Name Type Description
    filePath String

    A file path that includes the file name and extension, where the file should be created.

    Optional Parameters

    Name Type Default Description
    options XlsxExportOptions null

    Contains settings that apply to the exported document.

    Remarks

    To show the standard Print dialog, use the HeatmapControl.Print method. This dialog allows users to print the diagram, select the printer, specify the range of pages to print, the number of copies, and so on.

    To display the DevExpress Print Preview, use one of the following methods:

    Method Description
    HeatmapDiagramControl.ShowPrintPreview Creates a print document and displays the Print Preview dialog.
    HeatmapDiagramControl.ShowRibbonPrintPreview Creates a print document and displays the Print Preview with the Ribbon toolbar.

    To export the diagram, use one of the ExportTo~ methods (for example, call the HeatmapControl.ExportToPdf method to export the diagram to a PDF file).

    Important

    The diagram can be previewed, printed or exported to other formats only if the Printing library is available (except when you export to raster and vector images). Ensure you add a reference to the DevExpress.XtraPrinting.v25.2 assembly.

    Note that the DevExpress.Pdf.Core library should be available to export the heatmap to PDF.

    See Also