How to use to Interact with Reports in an ASP.NET Core app

This tutorial explains how to handle report loading and error-related events in the Bold Reports® Web Report Viewer. The video demonstrates how developers can monitor successful report loading and manage errors that occur during report processing or rendering.


Key Events Explained

Report Loaded

Fires when the report is loaded successfully. This event can be used to perform actions after the report is available in the viewer.

<div id="report-viewer"></div>
<script>
    $("#report-viewer").boldReportViewer({
        reportLoaded: function (args) {
            // Write a code block to perform any action when the report is loaded successfully.
        }
    });
</script>

Report Error

Triggered when an error occurs while processing or rendering the report. This event helps in capturing and handling report-related errors.

<div id="report-viewer"></div>
<script>
    $("#report-viewer").boldReportViewer({
        reportError: function (args) {
            // Write a code block to perform any action when a report error occurs.
        }
    });
</script>

Show Error

Fires when the user clicks on a failed report item in the rendered report, before showing the error details dialog. This event allows you to customize or override the default error display behavior.

<div id="report-viewer"></div>
<script>
    $("#report-viewer").boldReportViewer({
        showError: function (args) {
            // Write a code block to perform any action before displaying error details.
        }
    });
</script>

Implementation Workflow

Report Load Handling

Use the report Loaded event to track when the report is successfully rendered and ready for user interaction.

Error Management

Leverage report Error and show Error events to capture processing failures and customize how error information is presented to users.

If you want more details about Report Load and Error Events, you can check this video: