>Hello
>
>Need to know if its possible to print the last page number on the first page in vfp7?
>
>Not sure if you can get the last page number when printing the first page?
>
>Thanks
>Mark
Yes you could, but you must run the report twice to do that:
lnTotalPages = 0
REPORT FORM ... TO MyFile.TXT NOCONSOLE NODIALOG
lnTotalPages = _pageno
REPORT FORM ... TO PRINTER PROMPT PREVIEW
And use
lnTotalPages to show total number of pages in that report.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.