ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Viewer.Wpf Assembly / GrapeCity.ActiveReports.Viewer.Wpf Namespace / Viewer Class / RefreshReport Event
Example

In This Topic
    RefreshReport Event (Viewer)
    In This Topic
    Occurs before the viewer refreshes the report.
    Syntax
    'Declaration
     
    Public Event RefreshReport As EventHandler
    public event EventHandler RefreshReport
    Remarks
    This event is triggered in several scenarios, including:
    • Right after opening a new report.
    • Toggling/sorting and drill-through actions.
    • Pressing buttons: view report (parameters panel), galley mode, refresh, back to parent
    In case of no error, it occurs before the LoadCompleted event.
    Example
    viewer.RefreshReport += (sender, e) =>
    {
        // Custom logic upon report refresh
        // For example, enable a 'Save' button only after the report has been refreshed
        saveReportButton.Enabled = true;
    };
    See Also