PageCount Outside the Header

2 posts, 0 answers
  1. Tiago
    Tiago avatar
    5 posts
    Member since:
    Jun 2015

    Posted 29 Jun 2015 Link to this post

    Hi, there is some way to put the number of pages in a textbox (like the =PageCount) outside the page Header or Footer, even programmatically using C#, I tried by generate a temporary file of the report, counting the page numbers send that value and generate the report again but that solution is not very practice.

    Can Some one help me please.

  2. Nasko
    Nasko avatar
    909 posts

    Posted 30 Jun 2015 Link to this post

    Hello Tiago,

    The PageCount and PageNumber global objects are available only inside the Page Header and Page Footer sections due to the nature of the Report Life Cycle and the fact that the binding to data and processing happens earlier than the rendering and paging of the report.
    An alternative approach, as you already suggested, is to process and render the report once to retrieve its page count and then do the same once more but this time pass the already known page count value as a parameter to the report.

    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. DevCraft banner
Back to Top