ASPxClientDashboard.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 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
)
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 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);
}