This is a migrated thread and some comments may be shown as answers.

PageCount Outside the Header

1 Answer 156 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Tiago
Top achievements
Rank 1
Tiago asked on 29 Jun 2015, 04:59 PM

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.

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 30 Jun 2015, 11:53 AM
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.

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
Tags
Report Designer (standalone)
Asked by
Tiago
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or