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

PageNumber not available in report header

1 Answer 61 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 16 Dec 2012, 10:50 PM
I tried to add an expression =PageNumber in the Report header, and it didn't show up.   

Shouldn't PageNumber be available in all sections?

I am using the reportheader to display [=Page #: 1] text instead of ="Page #: " + PageNumber.  Then with the reportheader hidden on other pages, I am using the pageheader to show the pagenumber text for each page with a smaller footprint.

Peter

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 17 Dec 2012, 01:43 PM
Hi Peter,

The built-in PageCount and PageNumber objects are accessible only in the Page Header and Page Footer as these sections are rendered after the data is processed. Please, refer to the following articles in our Online Help for more information - Reports Life Cycle and Report Sections.

The approach that I can suggest is to use Conditional Formatting over the TextBox item displaying the page number based on the PageNumber object.

Let me know if you have any other questions.

All the best,
Stef
the Telerik team

HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

Tags
General Discussions
Asked by
Peter
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or