Report viewer with dynamic data

1 Answer 177 Views
Report Viewer - ASP.NET
Mohan
Top achievements
Rank 1
Mohan asked on 19 Feb 2023, 03:43 AM

Hi,

I have designed a report template using web report designer using json data(for invoice pdf).

Now I want to display pdf/report using different data by passing an argument.

I want to use the same template for all invoice pdf.

Kindly explain is this possible in telerik also can you provide a sample code for this?

I am using ASP.net mvc for developing the project

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 22 Feb 2023, 03:01 PM

Hi Mohan,

There are many ways for dynamically providing the data to the report. With that being said, in the scenario of using a Report Viewer, the easiest would probably be to implement a custom IReportSourceResolver where in the Resolve method, one may edit a report and then send an InstanceReportSource of the edited report with the new data.

For details on to implement a custom resolver, please refer to the How to use Custom Report Source Resolver and Custom Report Document Resolver - Telerik Reporting article.

Please let me know if you have any other questions. Thank you for trying Telerik Reporting!

Regards,
Dimitar
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.
Tags
Report Viewer - ASP.NET
Asked by
Mohan
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or