Skip to main content
All docs
V25.2
  • ReportStorageBase.ReportCreated Event

    Fires after a report is prepared for printing and allows you to modify the report settings.

    Namespace: DevExpress.ExpressApp.ReportsV2

    Assembly: DevExpress.ExpressApp.ReportsV2.v25.2.dll

    NuGet Package: DevExpress.ExpressApp.ReportsV2

    Declaration

    [Browsable(false)]
    public event EventHandler<BeforeShowPreviewEventArgs> ReportCreated

    Event Data

    The ReportCreated event's data class is DevExpress.ExpressApp.ReportsV2.BeforeShowPreviewEventArgs.

    Remarks

    private void ReportStorage_ReportCreated(object sender, BeforeShowPreviewEventArgs e) {
        e.Report.ParametersRequestBeforeShow += (s, e) => {
            var report = (XtraReport)s;
            if (report.DisplayName == "ContactReport") {
                var parameter = e.ParametersInformation.FirstOrDefault(t => t.Parameter.Name == "MyParameter");
                if (parameter != null) {
                    parameter.Parameter.Value = "TEST!";
                    parameter.Parameter.Visible = false;
                }
            }
        };
    }
    

    Implements

    See Also