Back to Devexpress

DashboardControl.CustomizeExportDocument Event

dashboard-devexpress-dot-dashboardwpf-dot-dashboardcontrol-55bd32e4.md

latest4.1 KB
Original Source

DashboardControl.CustomizeExportDocument Event

Allows you to customize the stream containing the resulting document (such as PDF, Image, or Excel).

Namespace : DevExpress.DashboardWpf

Assembly : DevExpress.Dashboard.v25.2.Wpf.dll

NuGet Package : DevExpress.Wpf.Dashboard

Declaration

csharp
public event CustomizeExportDocumentEventHandler CustomizeExportDocument
vb
Public Event CustomizeExportDocument As CustomizeExportDocumentEventHandler

Event Data

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

PropertyDescription
ExcelExportOptionsGets options related to exporting a dashboard/dashboard item to Excel format.
ExportActionGets the export action performed by an end-user. Inherited from CustomExportBaseEventArgs.
ExportModeGets the document export mode. Inherited from CustomExportBaseEventArgs.
ImageExportOptionsGets export options related to exporting a dashboard/dashboard item as an image. Inherited from CustomExportBaseEventArgs.
ItemComponentNameGets the component name of the exported dashboard item. Inherited from CustomExportBaseEventArgs.
PdfExportOptionsGets export options related to exporting a dashboard/dashboard item to PDF format. Inherited from CustomExportBaseEventArgs.
PrintPreviewOptionsGets options related to printing a dashboard/dashboard item using the Print Preview window. Inherited from CustomExportBaseEventArgs.
StreamGets or sets a stream containing the exported document.

The event data class exposes the following methods:

MethodDescription
GetItemData(String)Returns multidimensional data for the specified dashboard item.

Remarks

The CustomizeExportDocument is raised after the DashboardControl.CustomExport and allows you to customize the stream containing the resulting document (such as PDF, Image, or Excel). Use the e.Stream event parameter to access the stream.

More information about exporting: Printing and Exporting.

See Also

DashboardControl Class

DashboardControl Members

DevExpress.DashboardWpf Namespace