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

PageNumber, retrive value

3 Answers 97 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Frank
Top achievements
Rank 1
Frank asked on 10 Dec 2008, 11:39 AM
Hi all.
How can I retrieve PageNumber value in my report code?
Thanks.

3 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 12 Dec 2008, 12:54 PM
Hello Frank Effenberger,

PageNumber and PageCount are global objects that can be used in expressions, but only in the context of the PageHeader and PageFooter sections. For example, you can set the Value of a TextBox in the PageHeader to be:

=PageNumber + ' of ' + PageCount

and this will show you "1 of 3", "2 of 3", etc. on the different pages of your report.

Have in mind that paging is specific to the rendering format and must occur during rendering, well after early report processing where data binding occurs. For more information, please see:

Report Life Cycle
Using Expressions

If you have any further questions, please do not hesitate to contact us.

Sincerely yours,
Ross
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Maltrak
Top achievements
Rank 1
answered on 02 Jul 2015, 04:36 PM

Hi, i have a problem with pagenumber / not show numbers... can you helpme please...

 

0
Maltrak
Top achievements
Rank 1
answered on 03 Jul 2015, 01:53 AM
I answer to my self,  my error was the field that wasn't in the footer or header, it was into detail area and its wrong.
Tags
General Discussions
Asked by
Frank
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Maltrak
Top achievements
Rank 1
Share this question
or