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

Combining Multiple Reports In Silverlight (RadBook?)

3 Answers 97 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mike Gardner
Top achievements
Rank 1
Mike Gardner asked on 19 Dec 2009, 09:56 PM
Hello,

I've written some reports.  I can run a single report from Silverlight using the ReportViewer.  All seems to be well.  However, we've now hit a stumbling block as we cannot figure out how to merge multiple reports into a single report viewer or report book. 

In my web forms testing I was able to place a ReportViewer control on a page and then programatically determine which reports would needed to be included.  From there I would create the ReportBook, add the reports, and then set the ReportViewer's report property to the ReportBook object.

I've seen the example on this page: http://demos.telerik.com/reporting/report-book/silverlight-demo.aspx

I couldn't find code on this example.  I could not find any information in the help docs.  Can you please provide an example on how to implement this control or provide an example project?

Thank you so much!

Mike G.

3 Answers, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 21 Dec 2009, 02:58 PM
I think the best way to go would be for you to install the examples that come with Reporting. These aren't installed by default so you will have to go back and repair the installation to get this set up. It has a nice .sln file for both VS 2005 and 2008, and provides full source code for everything (including the Report Book demo you mentioned).
0
Mike Gardner
Top achievements
Rank 1
answered on 21 Dec 2009, 03:13 PM
Thanks for suggesting to look at the examples.  I forgot they were even there.  When I installed I they must have been installed by default because I didn't have to modify my installation.

Anyhow, none of the examples (at least the web forums and Silverlight) did not address a demo of the report book construct.

I'm looking for the code that is used for this demo: RadBook Demo.  So far I can display one report within the viewer, not multiple combined reports.

Thanks,

Mike G.
0
Steve
Telerik team
answered on 21 Dec 2009, 03:23 PM
Hi Mike,

As you probably might know, the ReportViewer.Report property is of type Telerik.Reporting.IReportDocument, thus you can assign a class that inherits Telerik.Reporting.ReportBook to the viewer and it would display it just fine. This is exactly what we're doing in our examples.
I guess the part that confuses you is that you are trying to do this on the client side (i.e. in the silverlight application), when you should keep in mind that the reports are handled (processed and rendered) on the server and then sent on the client with the help of the Telerik WCF Service. So this means that you cannot combine reports in a report book on the client and you should do that only on the server.
It is in our plans to "expose" the report API on the client so that you would be able to do that, but is it planned for future version of the product.

Sincerely yours,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Mike Gardner
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Mike Gardner
Top achievements
Rank 1
Steve
Telerik team
Share this question
or