Skip to main content
All docs
V18.2

ASPxClientReportDesigner.ReportOpened Event

Occurs when a report has been opened in the Web Report Designer.

Namespace: DevExpress.XtraReports.Web.Scripts

Assembly: DevExpress.XtraReports.v18.2.Web.Scripts.dll

Declaration

public event ASPxClientReportDesignerReportOpenedEventHandler ReportOpened

Event Data

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

Property Description
Report Specifies the report currently being processed.
Url Specifies the URL of the report currently being processed.

Remarks

Handle the ReportOpened event to respond to opening a report in the Web Report Designer.

This event fires in the following cases:

  • when you run the Report Designer with a specific report assigned;
  • when you open a report using the Open menu command and Open Report dialog;
  • when you open a report using the client-side ASPxClientReportDesigner.OpenReport method.

The following example demonstrates how to use this event to change the system of measurement for an opened report.

<script type="text/javascript" id="script">
    function reportOpened(s, e) {
        e.Report.measureUnit("TenthsOfAMillimeter");
    }
</script>

<dx:ASPxReportDesigner ID="ASPxReportDesigner1" runat="server" ClientInstanceName="reportDesigner">  
    <ClientSideEvents ReportOpened="reportOpened" />   
</dx:ASPxReportDesigner>

To perform required actions before a report is opened in the Report Designer, handle the ASPxClientReportDesigner.ReportOpening event.

See Also