Skip to main content
All docs
V24.1

DashboardExporter.ExportToPdf(String, Stream, Nullable<Size>, DashboardState, DashboardPdfExportOptions) Method

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

Namespace: DevExpress.DashboardCommon

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

NuGet Package: DevExpress.Dashboard.Core

Declaration

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

Parameters

Name Type Description
dashboardXmlPath String

The path to the dashboard XML file.

outputStream Stream

A stream to which the created PDF 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 DashboardPdfExportOptions null

A DashboardPdfExportOptions object that contains PDF-specific options.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ExportToPdf(String, Stream, Nullable<Size>, DashboardState, DashboardPdfExportOptions) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also