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

Telerik reporting reportBook, Silverlight

2 Answers 65 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jara
Top achievements
Rank 1
Jara asked on 18 Aug 2010, 07:02 PM
Hi,
Maybe can anybody explain in detail, how add reportBook and bind it to reportViewer in Siverlight application?

2 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 19 Aug 2010, 04:14 PM
Hello Jara,

You have to create a custom class that inherits the Report Book as shown in the following code snippet and can be later assign to a report viewer. Because the ReportViewer.Report property is of type Telerik.Reporting.IReportDocument you can assign a class that inherits Telerik.Reporting.ReportBook to the viewer and it would display it just fine. 

public class ReportBook : Telerik.Reporting.ReportBook
{
    public ReportBook()
    {
        this.Reports.Add(new DashBoard());
        this.Reports.Add(new ProductSales());
        this.Reports.Add(new ProductCatalog());
        this.Reports.Add(new ProductLineSales());
    }
}
You can see this example in action in the ReportBook demo that came with your installation of Telerik Reporting - Start - > Programs -> Telerik -> Reporting -> Visual Studio Examples.

Sincerely yours,
Peter
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Jara
Top achievements
Rank 1
answered on 19 Aug 2010, 06:33 PM
Thanks for reply.
It was very helpful.
Tags
General Discussions
Asked by
Jara
Top achievements
Rank 1
Answers by
Peter
Telerik team
Jara
Top achievements
Rank 1
Share this question
or