The only way you can do it is to run the report twice. How is VFP supposed to know the total pages without running the report? Even when using the _PAGETOTAL system variable in VFP 8, the report is run twice.
>Hi,
>
>I have a report which has 400 pages. I have to display the page number and the page total at the bottom of each page. I am running the same report twice, firstly to get the page total and then to display it in the report the second time.
>
>This takes too much time.
>Is there any way that i can get the no of pages before displaying the report, so i dont have to run the same report twice.
>
>Any answers ??
>
>Thanks & Regards,
>JD.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer