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

Using SL-ReportViewer without a Service

2 Answers 44 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rudolf Bösch
Top achievements
Rank 1
Rudolf Bösch asked on 29 Nov 2010, 11:45 AM
Hi there

I am trying to implement the Silverlight Reportviewer in a way far from what your demos and docs (rather poor for the SL version by the way) are showing.

My data is entered in a Grid by the user (not coming from the database) in a set of custom-entities.
From hereI  want to open a report and sent the data directly as entity-collection or converted to XML to the report.

To proceed that way, I would like to know how to assign the report to the viewer in a simple way... kind of :
-> MyReportViewer.Report = Web.Testreport
Then, if I understood that right I can overgive the data to the report as ReportArgument and load it on the NeedsData event... I believe (?)

Any input will be welcome!

P.S.: don't tell me to refer to the demo... I know how to design the report, I'm  just interested in the SL part of the implementation .

2 Answers, 1 is accepted

Sort by
0
Rudolf Bösch
Top achievements
Rank 1
answered on 30 Nov 2010, 10:59 AM
Ok, I figured it out partially...
- I understood that the report needs at least the reportservice in order to be run, I added that one and the report opens quite ok.

Then I wanted to pass the dataset, I serialized it into an xml and tried to pass it to the report as an array of strings of 254 chars, but it crashes by doing so... and debugging the report seems to be impossible, even if it mentions that I might have a look at the inner exception.

Any Ideas someone?

Thanks in advance
Rudolf
0
Steve
Telerik team
answered on 30 Nov 2010, 05:35 PM
Hi Rudolf,

Although the Silverlight ReportViewer can operate out-of-browser, it always requires the Telerik Reporting WCF Service. Currently the reporting engine is not compatible with Silverlight and it requires .NET framework to perform its operations (incl. PDF and Excel rendering, etc). The reports reside on the server and the Reporting Service acts as a communication interface between the client programs and the report server.

Anyway we already have a couple of ideas how to improve the integration of the Reporting engine with Silverlight, but due to some limitations of the framework we will stay with the report service for now.
The ideal solution for your case would be to introduce Silverlight report definition i.e. expose the report object on the client. This is in our TODO list, but as it is a time consuming task, we cannot engage with exact time frame when this would be implemented. For the time being the only way to interact with the report from the Silverlight client is through the report parameters as shown in the Programmatic Initialization of Report Parameter Values in Telerik Reporting Silverlight Viewer KB article.

Greetings,
Steve
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
Tags
General Discussions
Asked by
Rudolf Bösch
Top achievements
Rank 1
Answers by
Rudolf Bösch
Top achievements
Rank 1
Steve
Telerik team
Share this question
or