Skip to main content
A newer version of this page is available. .

ASPxClientDashboardViewer.ExportToPdf(ASPxClientDashboardExportOptions) Method

OBSOLETE

This method is obsolete now. Use the ExportToPdf instead. To learn more, see the following KB article: https://www.devexpress.com/Support/Center/Question/Details/T488764

Exports a dashboard to a PDF file with the specified export options and writes it to the Response.

Namespace: DevExpress.DashboardWeb.Scripts

Assembly: DevExpress.Dashboard.v18.2.Web.WebForms.Scripts.dll

Declaration

[Obsolete("This method is obsolete now. Use the ASPxClientDashboardViewer.ExportToPdf(DashboardPdfExportOptions options) methods instead. To learn more, see the following KB article: https://www.devexpress.com/Support/Center/Question/Details/T488764")]
public void ExportToPdf(
    ASPxClientDashboardExportOptions options
)

Parameters

Name Type Description
options ASPxClientDashboardExportOptions

A ASPxClientDashboardExportOptions object containing settings that specify parameters affecting how the dashboard is exported.

Remarks

Suppose that you have a ASPxDashboardViewer on a web page with the ‘webViewer’ client identifier (ASPxDashboardViewer.ClientInstanceName). The following code snippet shows how to export the dashboard displayed within this Viewer using the ExportToPdf method with specific export options specified.

function(s, e) {
    var exportOptions = new ASPxClientDashboardExportOptions();
    exportOptions.PaperKind = DashboardExportPaperKind.A3;
    exportOptions.PageLayout = DashboardExportPageLayout.Landscape;
    exportOptions.ScaleMode = DashboardExportScaleMode.UseScaleFactor;
    exportOptions.ScaleFactor = 1.0;
    webViewer.ExportToPdf(exportOptions);
}
See Also