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

Telerik Reporting with Silverlight Report Viewer

1 Answer 99 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
victor
Top achievements
Rank 1
victor asked on 27 Jul 2015, 12:07 PM
Hi all,
i'm working on C# , Silverlight with MVVM concept , I'm using Silverlight Report viewer to print or print preview the reports .
this report viewer is calling by using the WCF services here my report is loading slowly I checked with fiddler and found that the service is calling calling  4 times here I have attached the image of that and piece of code how I implemented. I think ,because of calling 4 times the report is loading slowly .And here is a question can we use  HTML5 report viewer instead of Silverlight Report Viewer with C# , Silverlight with MVVM concept ? does this work fast compare to Silverlight report engine? if possible can any one  Please provide the demo project or link to refer.

Thanks
Victor     

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 27 Jul 2015, 02:57 PM
Hi Victor,

The custom ReportResolver is called multiple times while displaying the report - on initial loading of the report, on consecutive interactions as export, print, parameters changes. The custom ReportResolver is called also on changing the viewer's Report property in code. Thus consider caching any data retrieved in the custom resolver to avoid the consecutive calls to the data if they are not needed. Check my colleague's example here.

About switching to the HTML5 Report Viewer, it works with the Reporting REST service - HTML5 viewer overview. The service allows you to use your own custom resolver, where the custom resolver's Resolve method is called multiple times again on initial displaying of the report and on consecutive interactions with it in the viewer.


Note that both Reporting WCF and Reporting REST service purpose is to deliver content from the server to the client, where the server uses the same reporting engine to resolve and generate documents. When you use custom logic for resolving reports, it must be considered with the technology.
You can test the performance of the Reporting WCF and Reporting REST services with the local demos, installed by default under C:\Program Files (x86)\Telerik\Reporting <VERSION>\Examples.


Let us know if you need any further help.

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
victor
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or