All docs
V20.1
20.2 (EAP/Beta)
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

IDashboardControl.BeforeExportDocument Event

Allows you to hide specific dashboard items when printing or exporting the entire dashboard.

Namespace: DevExpress.DashboardWin

Assembly: DevExpress.Dashboard.v20.1.Win.dll

Declaration

event BeforeExportDocumentEventHandler BeforeExportDocument
Event BeforeExportDocument As BeforeExportDocumentEventHandler

Event Data

The BeforeExportDocument event's data class is BeforeExportDocumentEventArgs. The following properties provide information specific to this event:

Property Description
ExcelExportOptions Gets options related to exporting a dashboard/dashboard item to XLSX/XLS/CSV format.
ExportAction Gets the export action performed by an end-user.
ImageExportOptions Gets export options related to exporting a dashboard/dashboard item to an image.
PdfExportOptions Gets export options related to exporting a dashboard/dashboard item to PDF format.
PrintPreviewOptions Gets options related to printing a dashboard/dashboard item using the Print Preview window.

The event data class exposes the following methods:

Method Description
HideItem(Predicate<DashboardItem>) Hides the dashboard item matching the specified predicate in the exported dashboard.
HideItem(String) Hides the dashboard item with the specified name in the exported dashboard.
See Also