Take a look at system variable _PAGENO.
Here is where VFP stored the "current" page numbe in a report. If you want the total number of pages in a report you can run the report to a file (instead of screen or printer) and read _PAGENO afterwards. Then you can run the report again (this time to screen or printer) and use the value that _PAGENO gave you as the total of pages.
>Hi everybody,
>
>Is there a variable which stores the total number of pages being printed through VFP are stored?
>
>Thanks for helping.
Hector Correa