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

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

    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