The requested page is not available for the requested platform. You are viewing the content for Default platform.

DashboardDesigner.ExportDashboardItemToExcel(String, String, DashboardExcelExportOptions) Method

Exports the dashboard item to the specified file in Excel format using specified export options.

Namespace: DevExpress.DashboardWin

Assembly: DevExpress.Dashboard.v19.1.Win.dll


public void ExportDashboardItemToExcel(
    string dashboardItemName,
    string filePath,
    DashboardExcelExportOptions options
Public Sub ExportDashboardItemToExcel(
    dashboardItemName As String,
    filePath As String,
    options As DashboardExcelExportOptions


Name Type Description
dashboardItemName String

A String that is the component name of the dashboard item to be exported.

filePath String

A String that specifies the path to the Excel file.

options DashboardExcelExportOptions

A DashboardExcelExportOptions object which specifies the Excel export options to be applied when the dashboard item is exported.


The following code snippet shows how to export data visualized within the Chart dashboard item using the DashboardDesigner.ExportDashboardItemToExcel method in the XLSX format.

using DevExpress.DashboardCommon;
// ...
            dashboardDesigner1.ExportDashboardItemToExcel("chartDashboardItem1", @"c:\temp\ExportedWorkbook.xlsx", new DashboardExcelExportOptions() {
                    Format = ExcelFormat.Xlsx
See Also