e.RenderingResult.Error = "My custom error message";
}
}
#endregion
}
As you can see the MainPage contains a Silverlight ReportViewer. On other hand, the viewer uses IReportServiceClientFactory to get a reference to the proxy of the WCF Report service. In the example we simply return the default implementation which is the ReportServiceClient. ReportViewer uses the RenderAndCacheAsync method to render the report. You can hook to the RenderAndCacheComplete event in order to implement a custom error handing for a report.
All the best,
Hrisi
the Telerik team
BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >