Completed
Last Updated: 13 Aug 2020 12:41 by ADMIN
Release R2 2020
Daniel
Created on: 05 Dec 2017 22:02
Type: Feature Request
5
Use IReportResolver instance to resolve child reports
When using a custom IReportResolver, it gets invoked to resolve the main report but does not get called for any sub/child report. This generates inconsistent handling of the report resolve and also makes it hard to have a single repository for report templates.
2 comments
ADMIN
Milen | Product Manager @DX
Posted on: 13 Aug 2020 12:40

Hello Mirzodaler,

Custom resolution of the SubReport's ReportSource to IReportDocument is available in the last major release - R2 2020. Note that the custom report source resolver is used to resolve the client-side string representing the target report source to an instance of a concrete implementation of the ReportSource object. In the scenario where we want to use a custom procedure for the next step in the report rendering process - the resolution of the ReportSource object to a concrete object instance implementing IReportDocument. To achieve this we have introduced a new property in the ReportServiceConfiguration object called ReportDocumentResolver.  This instance will be used for both the resolution of the master and detail report documents so that you can apply any desired logic there. For convenience returning null in the Resolve method of the implementation will fall back to the built-in resolution.

You can review the ReportsController implementation in the Html5Demo project shipped with the product installation.

Regards,
Milen
Progress Telerik

Mirzodaler
Posted on: 05 Aug 2020 11:28

Hi,

Is it something that is going to be implemented soon? We need this feature as well.

We have a custom report resolver and the sub reports are not hitting our resolver so that we can resolve them differently.

Thanks,