>Hi, My name is Herman.
>
>I have been writing some reports with VFP6.
>I can't seen to find how to get the total number of pages
>the report will print so that I can show 'Page 1 of X' on each
>page printed. How can I do this.
>
>Thanks
Hi Herman,
Wellcome to UT! I guess, everyone of us started using UT with the same question :) At least, I had...
There are two approaches here:
1) Print report to temp file before producing the actual file and save _pageno in some variable
2) If your report is simple and doesn't use stratch with overflow option, you may want to calculate this number knowing how many records per page is usually printed... This approach is tricky and it's not recommended.
If it's not broken, fix it until it is.
My Blog