How can we show page number as 'Page 'n' of Total number of pages' in PDF reports

1 Answer 4899 Views
General Discussions
Lance
Top achievements
Rank 1
Lance asked on 21 Dec 2018, 02:09 PM

Currently while exporting report to PDF, only current page number is displayed at the bottom of each pages. Instead of this, we would like to show page number in 'n' of Total number of pages' format. 

Any suggestion for this? 

Thanks.

1 Answer, 1 is accepted

Sort by
1
Todor
Telerik team
answered on 28 Dec 2018, 01:55 PM
Hi Lance,

In Telerik Reporting there are built-in Page functions. You may use PageCount to get the total number of pages. For example, an expression like :

= 'page ' + PageNumber + ' of ' + PageCount

will display the current page and the total number of pages in the context of the entire report (i.e. 'page 1 of 20', 'page 2 of 20', etc).

Note that Page functions can be used only in Page sections (i.e. PageHeader and PageFooter).

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
Tags
General Discussions
Asked by
Lance
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or