ASPxClientDashboard.ExportToPdf(ASPxClientDashboardExportOptions) Method

Obsolete. 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 ASPxClientDashboard.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
)
<Obsolete("This method is obsolete now. Use the ASPxClientDashboard.ExportToPdf(DashboardPdfExportOptions options) methods instead. To learn more, see the following KB article: https://www.devexpress.com/Support/Center/Question/Details/T488764")>
Public Sub ExportToPdf(
    options As ASPxClientDashboardExportOptions
)

Parameters

Type Name Description
ASPxClientDashboardExportOptions options

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

Remarks

Suppose that you have a ASPxDashboard on a web page with the 'webDashboard' client identifier (ASPxDashboard.ClientInstanceName). The following code snippet shows how to export the dashboard displayed within the ASPxDashboard 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;
    webDashboard.ExportToPdf(exportOptions);
}
See Also