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

Include Telerik reporting in Asp.net MVC 4 application

3 Answers 113 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Pietro
Top achievements
Rank 1
Pietro asked on 16 Mar 2015, 05:35 PM
Hi,
I have a asp.net MVC 4 application and I'm considering to include a reporting tools "telerik reporting".
Are there some example about how to show a report in HTML5 Report Viewer under these constraints:
1. The report is created with standalone telerik report designer and it is save as trdx file in  /App_Data folder,  so Report has to retrieved from /App_Data folder
     (use CustomReportResolver : IReportResolver  ?).

2. The report has to use a ObjectDataSource (eg.: list of object like List<Cars>) and the binding is done at runtime before the reports is shown, the list of object has to got from a repository class

    How to create fields on report at Design Time from ObjectDataSource  in standalone telerik report designer.



Thanks for any advice.


3 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 19 Mar 2015, 04:50 PM
Hello Pietro,

The HTML5 Report VIewer is a client-side HTML5/CSS3/JS widget, served by a running Reporting REST service.
For more details, please check  this forum thread
and the linked overview article, where you can find details how the viewer and the service work.
For a working demo, check the local examples installed by default under C:\Program Files (x86)\Telerik\Reporting <VERSION>\Examples.


To use the ObjectDataSource (custom business object as data source) in the Standalone Report Designer tool, the data access layer must be built in an external assembly extending the tool's configuration. On deploying the TRDX you can configure the application to load the same or other assembly with the same signature.

Other approach is to set data at run-time. For the purpose you will have to retrieve the report on the server in a custom report resolver, and deserialize it in a Telerik.Reporting.Report object. Then you can set the report instance's DataSource.


I hope the provided information is helpful.

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.

 
0
Surya prakash
Top achievements
Rank 1
answered on 20 Oct 2015, 02:12 PM

I have not found any available object datasource in telerik report designer using object datasource .

please advise.

i would we grate for me.

0
Stef
Telerik team
answered on 22 Oct 2015, 01:08 PM
Hello Surya,

You will need to extend the Standalone Designer tool to load the external assembly with the custom data objects. Then on starting the designer and adding an ObjectDataSource component, you will be able to use the custom objects as items' data sources.

For more details check  Extending Report Designer (the linked at the bottom articles are step-by-step tutorials for extending the tool and later deploying the reports).

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Pietro
Top achievements
Rank 1
Answers by
Stef
Telerik team
Surya prakash
Top achievements
Rank 1
Share this question
or