Hi,
Maybe can anybody explain in detail, how add reportBook and bind it to reportViewer in Siverlight application?
2 Answers, 1 is accepted
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