MESCIUS.ActiveReports.Viewer.Wpf Assembly / GrapeCity.ActiveReports.Viewer.Wpf Namespace / Viewer Class / HandleError Method
The exception to report.
Example

HandleError Method (Viewer)
Handles runtime error on the viewer.
Syntax
'Declaration
 
Public Sub HandleError( _
   ByVal ex As Exception _
) 
 

Parameters

ex
The exception to report.
Remarks
This method is intended to centralize error handling within the viewer control.
Example
var viewer = new Viewer();
// Example of handling an error that might occur during document loading.
try
{
    viewer.LoadDocument("path/to/your/report.rdlx");
}
catch (Exception ex)
{
    viewer.HandleError(ex);
}
See Also