MV
asked on 04 Jan 2022, 07:56 PM
| edited on 04 Jan 2022, 08:29 PM
Hello,
I am using the Telerik Report Server and I need to create a ReportBook at runtime. Could somebody please provide an example or more guidance on how to accomplish this?
Thank You!
Dimitar
Telerik team
commented on 07 Jan 2022, 01:41 PM
Could you please elaborate further on the scenario at hand?
If you need to create a report book at runtime and then display it in a report viewer, you may do so by implementing a custom IReportSourceResolver where you create the report book and then return it in the Resolve method. The following articles should help you in how you may implement such functionality:
If you need to do anything else outside of a report viewer, you can pretty much use the same code except that you do not need a custom resolver in such a case.
Could you please elaborate further on the scenario at hand?
If you need to create a report book at runtime and then display it in a report viewer, you may do so by implementing a custom IReportSourceResolver where you create the report book and then return it in the Resolve method. The following articles should help you in how you may implement such functionality:
If you need to do anything else outside of a report viewer, you can pretty much use the same code except that you do not need a custom resolver in such a case.
If you need to upload the created report book to your report server, you may again use the Report Server API Client to do so - Report Server REST API v2.