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

Last reviewed: September 22, 1997
Article ID: Q99556
2.50 WINDOWS kbenv kbprg kbfixlist kbbuglist

The information in this article applies to:

  • Microsoft FoxPro for Windows, version 2.5

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: kbenv kbprg kbfixlist kbbuglist
KBSubcategory: FxenvMemory
Keywords : FxenvMemory kbbuglist kbenv kbfixlist kbprg
Version : 2.50
Platform : WINDOWS
Solution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 22, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.