Hi Sapna,
There is a FAQ here on this topic.
Anyway, the general approach requires two passes. First pass would be to dummy file, then the real pass, e.g.
private pnNumPages
pnNumPages = 0
report form myReport to file dummy.txt
delete file dummy.txt
pnNumPages = _pageno
report form myReport to ...
Use pnNumPages variable in your report.
VFP8 has this as native property...
>Hi,
>I have a report and in the header of the report, I want each page to show the current page number and the total pages in the report. Something like:
>
>Page X of Y
>
>where X is the current page and Y is the last page. Any ideas on how I should go about doing this? Thanks in advance for all your help.
>
>-Sapna Bhargava
If it's not broken, fix it until it is.
My Blog