Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Page Number in Report Designer Page Header or Group Head
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00083521
Message ID:
00087167
Views:
39
Well this did not work; however after looking more closley I had every item in my detail band set to float. After I set the uppermost field in the detail band to "Fixed relative with top band" the page number started working correctly.

>>It appears that _pageno is incremented after the detail so I thought I would be bright and use _pageno + 1 in my page header. It appeared to be working great until my customer informed me that the page number was not incrementing if a detail line item spanned accross multipal pages. Any suggestions. How can I make my own varible increment with every page. If I put the page number in the page footer it works great however this does not fit my customers specs.
>
>Use a global varible and call a UDF to increment it in the page footer.
>
>(1) In the page footer put a field with the value incrpageno(), set the print when to .F. and check remove if blank.
>(2) In the detail section reference the variable nMyPageNo
>(3)In the calling program do the following:
>nMyPageNo = 1
>report form myReport
>function incrpageno
>nMypageNo = nMyPageNo+1
>return
>
>I have not tested this but this is close to an answer.
>
>Hope I helped
>Robert
Previous
Reply
Map
View

Click here to load this message in the networking platform