Monday, February 20, 2012

page number in body

how to get page number in body of report

Use Globals!PageNumber in any expression.|||i have used in text box =Globals!PageNumber, there is en error message displayed
"these global variables can be used only in page header and page footer"

|||Yes, I'm not sure that it is possible to put it in the body of the report.

|||infact, my ultimate target is to show a row when there will be a new page, other wise hide it. and i can easily do that if i know the occurance of a new page and this can be done if i access page number in a body.
for example
aaaa cccc
dddd
eeee
now "aaaa" will be displayed on the first row of a page, otherwise blank spaces.
|||

Maybe this will help you:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=489400&SiteID=1

|||i have read this link, i have tested that code and it contains same problem as it is mentioned in that link.

in fact i can't use that approch because i am working in table-4 of my report and there are 3 tables above my table and the number of rows of those tables are dynamic, it means that they may contain N number of rows. now how i can bound page break on last table "table-4". so it means that i can't use row number approach as mentioned in above link.

i have another idea but please tell me how will that work,"how can i access report header text field in report body".

No comments:

Post a Comment