* Print Report SELECT curHatFiRep && CURSOR containing records to report PUBLIC mTotalPages && Page Count mvar STORE 1 TO mTotalPages && Initial value to eliminate error with REPORT FORM. * PRINTER PROMPT with =SYS(1037)... * Otherwise, you may have an issue with the printable area * being different between the default printer and the one * chosen by the user. Potentially, this could mean that the * "TO FILE" report would have a slightly different page count * than the "TO PRINTER" report because the number of lines * that can fit on the page may be slightly different. =SYS(1037) REPORT FORM HatFiRep TO FILE TempRept.prn NOCONSOLE DELETE FILE TempRept.prn STORE _PageNo TO mTotalPages && Actual value. REPORT FORM HatFiRep TO PRINTER NOCONSOLEI hate to bring up the printer dialog again by adding TO PRINTER PROMPT in the REPORT FORM statement. At best, it's a hassle for the user to have to experience 2 printer dialog boxes at report time. At worst, it looks like I'm not a clean programmer and it may mess up the page count on the report.