FIX: Preventing Extra Page When Printing Using @ ... SAY

ID: Q99556

2.50 WINDOWS

 kbprg kbfixlist kbbuglist

The information in this article applies to:

SYMPTOMS

If the system memory variable _PADVANCE is set to FORMFEED and the EJECT command is issued within a program after a series of @ ... SAY commands, a blank page may be ejected after the print job.

RESOLUTION

To prevent this problem, set _PADVANCE to LINEFEEDS.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem has been corrected in FoxPro version 2.5a for Windows.

MORE INFORMATION

The following code causes a blank page to be ejected after the printed page:

   _PADVANCE = "FORMFEED"
   _PEJECT = "NONE"
   SET DEVICE TO PRINTER
   @ 3,10 SAY "_PADVANCE = " + _PADVANCE
   @ 4,10 SAY "_PEJECT = " + _PEJECT
   EJECT
   SET PRINTER TO

To prevent the extra page from ejecting, set _PADVANCE to LINEFEEDS, or remove the EJECT command.

NOTE: In FoxPro versions 2.0 and 2.5 for MS-DOS, the above code does not cause an extra page to eject.

Additional reference words: FoxWin buglist2.50 2.50 fixlist2.50a advance KBCategory: kbprg kbfixlist kbbuglist KBSubcategory: FxenvMemory

Keywords          : kbenv FxenvMemory kbbuglist kbfixlist
Version           : 2.50
Platform          : WINDOWS
Solution Type     : kbfix

Last Reviewed: May 14, 1998