Skip to main content
All docs
V25.1
  • DashboardExporter.ExportToImage(String, Stream, Nullable<Size>, DashboardState, DashboardImageExportOptions) Method

    Exports a dashboard’s data to the specified stream in Image format.

    Namespace: DevExpress.DashboardCommon

    Assembly: DevExpress.Dashboard.v25.1.Core.dll

    NuGet Package: DevExpress.Dashboard.Core

    Declaration

    public void ExportToImage(
        string dashboardXmlPath,
        Stream outputStream,
        Size? dashboardSize = null,
        DashboardState state = null,
        DashboardImageExportOptions options = null
    )

    Parameters

    Name Type Description
    dashboardXmlPath String

    The path to the dashboard XML file.

    outputStream Stream

    A stream to which the created Image file should be sent.

    Optional Parameters

    Name Type Default Description
    dashboardSize Nullable<Size> null

    The dashboard’s size in pixels.

    state DashboardState null

    A DashboardState object that specifies the dashboard state to be applied to the resulting document.

    options DashboardImageExportOptions null

    A DashboardImageExportOptions object that contains Image-specific options.

    See Also