dashboard-devexpress-dot-dashboardcommon-dot-customexporteventargs.md
Gets the underlying report of the exported document.
Namespace : DevExpress.DashboardCommon
Assembly : DevExpress.Dashboard.v25.2.Core.dll
NuGet Package : DevExpress.Dashboard.Core
public XtraReport Report { get; }
Public ReadOnly Property Report As XtraReport
| Type | Description |
|---|---|
| XtraReport |
An XtraReport object that is the underlying report of the exported document.
|
Note
The underlying report (CustomExportEventArgs.Report) requires the DevExpress.XtraReports.v25.2.dll assembly for further customization.
The following example shows how to use the DashboardViewer.CustomExport event to specify header and footer content of an exported dashboard. This event allows you to access the underlying report (XtraReport) of the exported document.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Report property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
private void dashboardViewer1_CustomExport(object sender, CustomExportEventArgs e) {
var report = e.Report as XtraReport;
var topMarginBand = report.Bands[BandKind.TopMargin];
Private Sub dashboardViewer1_CustomExport(ByVal sender As Object, ByVal e As CustomExportEventArgs) Handles dashboardViewer1.CustomExport
Dim report = TryCast(e.Report, XtraReport)
Dim topMarginBand = report.Bands(BandKind.TopMargin)
See Also