Skip to main content
All docs
V24.2

DashboardExporter.ExportToPdf(Dashboard, 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.2.Core.dll

Declaration

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

Parameters

Name Type Description
dashboard Dashboard

A dashboard from which the dashboard’s data is exported.

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.

See Also