SET PRINTER TO NAME GETPRINTER() _PADVANCE = "LINEFEEDS" _PLENGTH = 0 * PRINT JOB HERE SET PRINTER TO>It seems that every time VFP sees a SET PRINTER TO command it forces a form feed. And the formfeed occurs every time the program is ran.
>>Set printer to dump.dmp && dumo.dmp is a file >>Eject && forces a Form feed >>Set printer to name (cPrinter) >>Erase dump.dmp>>
>>>cPrinter = getprinter() >>>if !empty(cPrinter) >>> set printer to name (cPrinter) >>> set printer on >>> * Change the font to COURIER >>> * This line causes the printer to issue a form feed >>> ??? chr(27)+chr(107)+'2' && ASCII ESC k n; where n=2 for Courier. >>> ? "Hello world" >>> set printer off >>> set printer to >>>endif >>>