IDashboardControl.CustomExport Event
Allows you to customize the exported document.
Namespace: DevExpress.DashboardWin
Assembly: DevExpress.Dashboard.v24.2.Win.dll
NuGet Package: DevExpress.Win.Dashboard
#Declaration
event CustomExportEventHandler CustomExport
#Event Data
The CustomExport event's data class is CustomExportEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Export |
Gets the export action performed by an end-user.
Inherited from Custom |
Export |
Gets the document export mode.
Inherited from Custom |
Image |
Gets export options related to exporting a dashboard/dashboard item as an image.
Inherited from Custom |
Image |
Obsolete. Gets export options related to exporting a dashboard/dashboard item as an image.
Inherited from Custom |
Item |
Gets the component name of the exported dashboard item.
Inherited from Custom |
Pdf |
Gets export options related to exporting a dashboard/dashboard item to PDF format.
Inherited from Custom |
Pdf |
Obsolete. Gets export options related to exporting a dashboard/dashboard item to PDF format.
Inherited from Custom |
Printable |
Obsolete. Provides access to a dictionary containing dashboard item names and related Printable |
Print |
Gets options related to printing a dashboard/dashboard item using the Print Preview window.
Inherited from Custom |
Report | Gets the underlying report of the exported document. |
The event data class exposes the following methods:
Method | Description |
---|---|
Get |
Returns chart context for the specified Chart dashboard item. |
Get |
Returns gauge export context for the specified Gauge dashboard item. |
Get |
Returns multidimensional data for the specified dashboard item. |
Get |
Gets a printable control corresponding to the specified dashboard item. |
Get |
Gets printable controls corresponding to the exported dashboard items. |
#Remarks
The Dashboard Control raises the CustomExport event in the following cases:
When you invoke the Print Preview dialog or change the previewed document’s settings (margins, orientation).
Before saving the exported document to PDF and as Image formats.
The event allows you to customize the exported document.
Use the CustomExportEventArgs.GetPrintableControl / CustomExportEventArgs.GetPrintableControls methods to obtain the printable control(s) for a specific dashboard item or the entire dashboard.
Use the CustomExportEventArgs.Report property to customize the underlying report.