Progress® Telerik® Reporting R1 2018

How to: Create a Report Book at run-time

You can programmatically create a report book at run-time by using the Telerik Reporting API. Simply create an instance of the ReportBook class and add the necessary ReportSources to its "ReportSources" collection. Alternatively, you can derive from the ReportBook class and initialize the book in the constructor if you want to separate the report book implementation details from the rest of your code. Below is a sample:

var reportBook = new ReportBook();
var weekdayReportSource = new TypeReportSource();
weekdayReportSource.TypeName = typeof(WeekdayReport).AssemblyQualifiedName;

var glossaryReportSource = new UriReportSource();
glossaryReportSource.Uri = "Reports\\Glossary.trdp";
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article