ASPxClientDashboard.ExportDashboardItemToPdf(String, ASPxClientDashboardExportOptions) Method
OBSOLETE
This method is obsolete now. Use the ExportDashboardItemToPdf instead. To learn more, see the following KB article: https://www.devexpress.com/Support/Center/Question/Details/T488764
Exports a dashboard item 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.ExportDashboardItemToPdf(string itemName, DashboardPdfExportOptions options) methods instead. To learn more, see the following KB article: https://www.devexpress.com/Support/Center/Question/Details/T488764")]
public void ExportDashboardItemToPdf(
string itemName,
ASPxClientDashboardExportOptions options
)
Parameters
Name | Type | Description |
---|---|---|
itemName | String | A string that is the component name of the dashboard item to be exported. |
options | ASPxClientDashboardExportOptions | An ASPxClientDashboardExportOptions object containing export options to be applied to the exported dashboard item. |
Remarks
Suppose that the ASPxDashboard displays a dashboard that contains a Grid dashboard item. The client identifier (ASPxDashboard.ClientInstanceName) of the Web Dashboard is set to ‘webDashboard’. The following code shows how to export the Grid dashboard item to a PDF file with the specified options.
function(s, e) {
webDashboard.ExportDashboardItemToPdf('gridDashboardItem1', {
IncludeCaption: true,
Caption: 'Sales Details',
FilterState: DashboardExportFilterState.SeparatePage,
GridOptions: {
FitToPageWidth: false,
PrintHeadersOnEveryPage: false
}
});
}