This is a migrated thread and some comments may be shown as answers.

Dynamic Report and Report Viewer in ASP.NET MVC or HTML5

1 Answer 265 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Fernando
Top achievements
Rank 1
Fernando asked on 16 Jul 2014, 05:50 PM
I have been creating a report using Telerik Report in a ASP.NET MVC application and I have a question.

I would like to know, how can we create a ReportViewer for a dynamic report with ASP.NET MVC?

we do not have a TRDX file, we need to create it dynamic. It just a simple list of data, nothing special.

For sample, I have a action in my controller and it creates a Telerik.Reporting.Report object dynamiclly and add some items like TextBoxes, Labels pointing to fields and add a List<Product> as a dataSource of this report. The report is ok and we can export to PDF and see the result, but I would like to present it into a ReportViewer like HTML5 version. How can I do it? How can I make my action return a object to the View and render it in a Telerik Report Viewer and get the resources like exporting to other formats.

Thank you.

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 21 Jul 2014, 07:22 AM
Hi Fernando,

Please check the following forum discussion on a similar question: ASP.net MVC4 using pass Model to ObjectDataSource.

Basically, you need to gather the user selection and store it. Then you can access the information in a custom resolver used in the ReportsControllerBase implementation, and create the report in it.


Let us know if you have any further questions.

Regards,
Stef
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
Fernando
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or