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

HTML5 Report Viewer using elerik.Reporting.Report as Report Source

1 Answer 353 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Issa
Top achievements
Rank 1
Issa asked on 26 Sep 2017, 07:09 PM

I'm implementing a reporting feature in a .net core application. This feature was previously implementing in a webforms application. The logic to produce a Telerik.Reporting.Report object exists already. In the webforms application you could provide the report source to the report viewer like:

ReportViewer.ReportSource = new Telerik.Reporting.InstanceReportSource { ReportDocument = ReportObject };

 

In the .net core application I have managed to setup the HTML5 report viewer and displayed the example report. I'm am struggling to find any documentation or examples on how to use a Telerik.Reporting.Report object as the source for the HTML5 report viewer. Is it possible to dynamically generate a Telerik.Reporting.Report and use that as the report viewer report source?

1 Answer, 1 is accepted

Sort by
0
Katia
Telerik team
answered on 28 Sep 2017, 10:43 AM
Hello Issa,

HTML5 Report Viewer uses Reporting REST service to get the reports which are actually processed on the server. It is a client-server model, in which the client(viewer) sends short string descriptions (messages) to the server and gets the content from the server. 
The viewer can send a description of the report (its assembly qualified name passed with TypeReportSource) or path to a report file (passed with UriReportSource), where the string description is interpreted by the service's report resolver which returns a ReportSource object.

Complex objects such as report instance (InstanceReportSource) cannot be transferred in a message. Therefore, it will require a custom report resolver where the report instance can be modified in resolver's Resolve() method and returned as InstanceReportSource.

More detailed information can be found in How to display a report via InstanceReportSource in the HTML5 Viewer KB article.


Regards,
Katia
Progress 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
Issa
Top achievements
Rank 1
Answers by
Katia
Telerik team
Share this question
or