Reset page number

6 posts, 0 answers
  1. Kevin
    Kevin avatar
    6 posts
    Member since:
    Oct 2011

    Posted 10 Apr 2012 Link to this post

    Hello,

    Here is my problem. I have to do a report who displays delivery order.
    This delivery order is on multiple pages.

    For each page, i should display something like this :

    Page 1 of 2
    Page 2 of 2
    Page 1 of 1
    Page 1 of 3
    Page 2 of 3
    ...

    My question is, how could i do to obtain this result ?

    Resetting the PageNumber ?
    How can i know at runtime the total page number of my delivery order ?

    Thanks a lot.
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 10 Apr 2012 Link to this post

    Hi Kevin,

    There are two approaches you can take:
    • filter your delivery order data and generate separate report for each order. Then use the Report Book functionality to "join" the reports as a single document. The PageNumberingStyle enumeration allows you to reset the page number and page count, see Report Book Paging for more info.
    • group your data by delivery order and reset the page number per group. For more info refer to Reset PageNumber per Report Group blog post. Note that you would not be able to reset PageCount in this case.

    Greetings,
    Steve
    the Telerik team
    NEW in Q1'12: Telerik Report Designer (Beta) for ad-hoc report creation. Download as part of Telerik Reporting Q1 2012. For questions and feedback, use the new Telerik Report Designer Forum.
  3. DevCraft banner
  4. Kevin
    Kevin avatar
    6 posts
    Member since:
    Oct 2011

    Posted 13 Apr 2012 Link to this post

    Thanks for your answer Steve, I'll choose the Report Book functionality  ;)
     
    After reading the documentation, i understand the principle of this functionality.
    But I don't understand how to put it in place in my solution.

    Should I create a new class and extend it ?

    Greetings, Kevin
  5. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 17 Apr 2012 Link to this post

    Hello Kevin,

    Creating a new class that inherits from Telerik.Reporting.ReportBook seems like the most feasible way to go about it.

    Kind regards,
    Steve
    the Telerik team
    NEW in Q1'12: Telerik Report Designer (Beta) for ad-hoc report creation. Download as part of Telerik Reporting Q1 2012. For questions and feedback, use the new Telerik Report Designer Forum.
  6. siva sha
    siva sha avatar
    1 posts
    Member since:
    Feb 2010

    Posted 02 Feb Link to this post

    Hi Steve,

     Can you share a sample project using Report Book. I am facing trouble to use in the project.

     

  7. Nasko
    Admin
    Nasko avatar
    909 posts

    Posted 04 Feb Link to this post

    Hello siva sha,

    A Report Book sample is available in the Telerik Reporting installation folder e.g.:
    C:\Program Files (x86)\Telerik\Reporting Q1 2016\Examples\CSharp\ReportLibrary\ReportBook

    Also, you can check the Reset PageNumber per Report Group blog post which provides a different way to approach the scenario.

    Regards,
    Nasko
    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
Back to Top
DevCraft banner