Creating a New Report Book

7 posts, 0 answers
  1. Jerry
    Jerry avatar
    7 posts
    Member since:
    Jul 2014

    Posted 01 Aug 2018 Link to this post

    I'm trying to find documentation on creating a Report Book.  There seems to be very little.  Can assist me in creating a Report Book from scratch?
    Examples, videos, etc would all be helpful.  
  2. Todor
    Admin
    Todor avatar
    356 posts

    Posted 06 Aug 2018 Link to this post

    Hello Jerry,

    An example of creating a report book is available in the How to: Create a Report Book at run-time article. Check also our demo ReportBook that comes with the installation of Telerik Reporting and can be found in (Telerik Reporting installation folder)\Examples\CSharp or VB\ReportLibrary\ReportBook (e.g. C:\Program Files (x86)\Progress\Telerik Reporting R2 2018\Examples\CSharp\ReportLibrary\ReportBook).

    It is possible to create ReportBooks also in the Standalone Designer. I have attached a short video demonstrating how to do this. The video is silent and can be opened in a browser with installed flash plug-in.

    Regards,
    Todor
    Progress Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. Talha
    Talha avatar
    3 posts
    Member since:
    Aug 2015

    Posted 23 Aug in reply to Todor Link to this post

    How can I get a Report object from a trbp file. In case of trdx, ReportXmlSerializer.Deserialize() does the job for me.

    Thanks

    -Talha

  4. Todor
    Admin
    Todor avatar
    356 posts

    Posted 28 Aug Link to this post

    Hi Talha,

    To create a Telerik.Reporting.Report instance from a TRBP or TRDP file you may use the Unpackage method of the ReportPackager class. You may find sample code snippets in the latter article.

    Regards,
    Todor
    Progress Telerik

    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 Feedback Portal and vote to affect the priority of the items
  5. Talha
    Talha avatar
    3 posts
    Member since:
    Aug 2015

    Posted 28 Aug in reply to Todor Link to this post

    Hi Todor,

    ReportPackager.UnPackageDocument() gives me a ReportBook instance. Now, I need to understand how can I assign DataSource to all the reports inside the ReportBook.

    The ReportBook instance I get contains a collection of UriReportSource objects. I had thought about deserializing individual reports using the Url, add them to Reports collection and then pass that ReportBook to ReportProcessor, but I get a warning that Reports collection is obsolete.

    Please let me know how I can assign DataSource to a ReportBook or each individual report.

    Thanks

    -Talha

  6. Todor
    Admin
    Todor avatar
    356 posts

    Posted 02 Sep Link to this post

    Hi Talha,

    The approach you have undertaken is the correct one. After deserializing the reports you just need to pass the modified reports wrapped in InstanceReportSources to the ReportBook.ReportSources collection - How to use ReportSource objects with ReportBook.

    Regards,
    Todor
    Progress Telerik

    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 Feedback Portal and vote to affect the priority of the items
  7. Talha
    Talha avatar
    3 posts
    Member since:
    Aug 2015

    Posted 02 Sep in reply to Todor Link to this post

    Deserializing individual reports and adding them to ReportBook.ReportSources worked for me.

    Thanks

    -Talha

Back to Top