RefreshReport Event (Viewer)
Occurs before the report refreshes. This event is triggered in several scenarios, including: - Opening a new report. - Performing actions such as toggling, sorting, or executing drill-through actions within the report. - Interacting with the UI to view the report (e.g., using the parameters panel), toggling galley mode, refreshing the report, or navigating back to a parent report in a drill-through scenario. In the absence of any errors, this event precedes the
LoadCompleted event.
// Assuming 'viewer' is your Viewer control instance
viewer.RefreshReport += Viewer_RefreshReport;
private void Viewer_RefreshReport(object sender, EventArgs e)
{
// Custom logic upon report refresh
// For example, enable a 'Save' button only after the report has been refreshed
saveReportButton.Enabled = true;
}