>>My users would like to see the total number of pages in a report at the bottom of each page. For example, in a ten-page report, they'd like to see "Page 1 of 10," "Page 2 of 10," etc. Is there a way to get the total page count before printing a report so I can include this number on each page?
>
>See
Re: Total No. of Pages Message #
789734I've done this. Here's the code I'm using on my "Print" command button:
holdpart=part_no
totpages=0
repo form cards for part_no=holdpart noco
totpages=_pageno
REPO form cards for part_no=holdpart prev
At the bottom of my report "cards," I have:
"Page " + ALLTRIM(STR(_PAGENO)) + " of " + ALLTRIM(STR(totpages))
This works just fine on my machine, but when they try to run it at another location, "totpages" doesn't seem to come over. They're always getting:
Page 1 of 1, Page 2 of 1, Page 3 of 1, etc.
Any ideas?
Thanks!
John