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

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.v19.1.Win.dll


public void ExportDashboardItemToImage(
    string dashboardItemName,
    string filePath,
    DashboardImageExportOptions options
Public Sub ExportDashboardItemToImage(
    dashboardItemName As String,
    filePath As String,
    options As DashboardImageExportOptions


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