Skip to main content

DashboardDesigner.ExportDashboardItemToImage(String, String, DashboardImageExportOptions) Method

Exports the dashboard item to the image file using the specified image options.

Namespace: DevExpress.DashboardWin

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


public void ExportDashboardItemToImage(
    string dashboardItemName,
    string filePath,
    DashboardImageExportOptions options


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 image file.

options DashboardImageExportOptions

A DashboardImageExportOptions object that specifies the image export options to be applied when the dashboard item is exported.


The following code snippet shows how to export the Chart dashboard item displayed within the DashboardDesigner using the DashboardDesigner.ExportDashboardItemToImage method with specific image-export options specified.

using DevExpress.DashboardCommon;
// ...
            dashboardDesigner1.ExportDashboardItemToImage("chartDashboardItem1", @"c:\temp\ExportedImage.jpg", new DashboardImageExportOptions() {
                    Format = DashboardExportImageFormat.Jpeg,
                    ScaleFactor = 1.5f
See Also