Download custom IReportResolver example (C#)
The Telerik Reporting Service is a WCF service that enables the remote access to the Telerik Reporting Engine (aka ReportProcessor). The Reporting Service acts as a communication interface between the client programs and the ReportProcessor.
The client programs invoke the report rendering from the service using a string report description. Based on the report description the service’s report resolvers try to create an IReportDocument instance needed by the ReportProcessor.
The IReportDocument interface represents a report document. This includes a single Report or ReportBook. The IReportDocument returned by the report resolver will be further handled by the ReportProcessor.
The service includes default report resolvers that are capable to resolve IReportDocument from relative and physical path that points to trdx file (report definition serialized in XML) or from assembly qualified name. This way we cover most of the scenarios. However if you have requirements that are not covered by the default report resolvers, such as retrieving report definitions stored in database or building a report book based on the report description, you can plug into the Telerik Reporting Service report resolving workflow.
The report resolvers implement the IReportResolver interface. This interface has only one method Resolve with a string argument - the report description. In custom resolver implementations you should use that description as you like in order to map it to IReportDocument instance.
If you use the Silverlight report viewer the report description is provided by the ReportViewer.Report property.
Even if you use your own IReportResolver implementation you can still fallback to the default IReportResolver implementations as shown in the following walkthrough.
CustomReportResolverWithFallBack : IReportResolver
.parentResolver = parentResolver;
ReportSource reportDocument =
//TODO implement custom report resolving mechanism
CustomReportService : ReportService
IReportResolver resolvers =
.ReportResolver = resolvers;
Stefan’s main interests outside the .NET domain include rock music, playing the guitar and swimming.
Copyright © 2016, Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.