[]
Handles runtime error on the viewer.
public void HandleError(Exception ex)
Type | Name | Description |
---|---|---|
Exception | ex | The error that occurred. |
This method is intended to centralize error handling within the viewer control.
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);
}