Louis Bouchard
Top achievements
Rank 1
Louis Bouchard
asked on 26 Feb 2011, 02:47 AM
Hello,
It's possible to use the Report Book in a pure Silverlight application (not embedded in an asp.net page)?
I see the Report Book control in the toolbook when I am in an aspx page but not in a xaml page.
Any idea?
It's possible to use the Report Book in a pure Silverlight application (not embedded in an asp.net page)?
I see the Report Book control in the toolbook when I am in an aspx page but not in a xaml page.
Any idea?
3 Answers, 1 is accepted
0
Hello Louis,
An example of Silverlight Report Book can be found in the demos that came with your installation of Telerik Reporting (Start - > Programs -> Telerik -> Reporting -> Visual Studio Examples). Check out the ReportBook.cs.
All the best,
Steve
the Telerik team
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.
Copy Code
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());
}
}
An example of Silverlight Report Book can be found in the demos that came with your installation of Telerik Reporting (Start - > Programs -> Telerik -> Reporting -> Visual Studio Examples). Check out the ReportBook.cs.
All the best,
Steve
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Louis Bouchard
Top achievements
Rank 1
answered on 05 Mar 2011, 05:43 AM
Thank you.
But When I check Telerick I don't see Visual Studio examples... See attachement.
Where I can find a complete example please with RB in pure SL?
But When I check Telerick I don't see Visual Studio examples... See attachement.
Where I can find a complete example please with RB in pure SL?
0
Hello Louis,
As outlined in Installing Telerik Reporting help article, the Examples feature would be marked as deselected if we do not find a local SQL Server instance on your machine or if your SQL Browser service is stopped. Supported SQL Server instances are SQL Server 2005 Standard/Express editions or later. In such case, the Reporting product would be installed without the demo reports.
Kind regards,
Steve
the Telerik team
As outlined in Installing Telerik Reporting help article, the Examples feature would be marked as deselected if we do not find a local SQL Server instance on your machine or if your SQL Browser service is stopped. Supported SQL Server instances are SQL Server 2005 Standard/Express editions or later. In such case, the Reporting product would be installed without the demo reports.
Kind regards,
Steve
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!