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:
00083533
Views:
40
>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
Next
Reply
Map
View

Click here to load this message in the networking platform