>I am having a hard time displaying the page total in the footer along with the page number. I can show the current page but not the total number of pages. In the following example how would I display the 15? Any help would be appreciated.
>
>Example:
>
> rpt hdr
>rptbody
>rptbody
>rptbody
>
>rpt footer Page 1 of 15
Michael, you need to run your report twice:
First time you just get the total pages number from the _pageno and the second time you will run it to printer using obtained value.
You can run the report first time TO SCREEN NOCONSOLE, but people say that sometimes it may give you incorrect number, so better to send it to file (and delete in then) or to NUL.
Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison