Skip to main content
A newer version of this page is available. .

CustomExportWebEventArgs.Report Property

Gets the underlying report of the exported document.

Namespace: DevExpress.DashboardWeb

Assembly: DevExpress.Dashboard.v21.2.Web.dll

NuGet Package: DevExpress.Web.Dashboard.Common

Declaration

public XtraReport Report { get; }

Property Value

Type Description
XtraReport

An XtraReport object that is the underlying report of the exported document.

Remarks

You can use the Report parameter to customize the underlying report. When you handle the ASPxDashboard.CustomExport event, you can obtain the following information:

Note

Note that a reference to the DevExpress.XtraReports.v21.2.dll assembly should be added to the project to allow customizing the underlying report (CustomExportWebEventArgs.Report).

Example

The following example shows how to specify header and footer content of an exported dashboard. The ASPxDashboard.CustomExport event provides access to the underlying report created for the exported document.

View Example

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebDashboard_CustomExport.Default" %>

<%@ Register Assembly="DevExpress.Dashboard.v16.2.Web, Version=16.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.DashboardWeb" TagPrefix="dx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div style="position: absolute; top: 0; left: 0; right: 0; bottom: 0;">
        <dx:ASPxDashboard ID="ASPxDashboard1" runat="server" Width="100%" Height="100%"
            AllowExportDashboardItems="True"
            OnConfigureDataConnection="ASPxDashboard1_ConfigureDataConnection"            
            OnCustomExport="ASPxDashboard1_CustomExport">
        </dx:ASPxDashboard>
    </div>
    </form>
</body>
</html>
See Also