>> >>"Page " + ALLTRIM(STR(_pageno)) + " of " + ALLTRIM(STR(_<totalpages>) >> >>>>
REPORT FORM MyReport to FILE TempRept.prn NOCONSOLE >TotalPages = _PageNo >DELETE FILE TempRept.prn >REPORT FORM MyReport TO PRINT NOCONSOLE >>It doesn't take long to print to the file and it gets you the right number of pages.
* Print Report SELECT curHatFiRep && Report CURSOR containing records to report PUBLIC mTotalPages STORE 1 TO mTotalPages && Initial value to eliminate error with REPORT FORM. REPORT FORM HatFiRep TO FILE TempRept.prn NOCONSOLE DELETE FILE TempRept.prn STORE _PageNo TO mTotalPages && Actual value. REPORT FORM HatFiRep TO PRINTER PROMPT NOCONSOLEThanks Again,