PRB: SET PRINTER ON and ??? Cause an Unnecessary Page EjectLast reviewed: April 30, 1996Article ID: Q114186 |
The information in this article applies to:
SUMMARYIn FoxPro for Windows, when you combine the SET PRINTER ON command with the ??? command to output data to a printer, a blank page ejects prior to the print job being sent.
CAUSEWhen the SET PRINT ON command is issued, a print job is started. When the ??? command is issued, the current print job is closed, and a new raw print job is opened. In FoxPro for Windows, when a print job is opened and then closed, a blank page will be printed even if no output was sent.
WORKAROUNDIn FoxPro for MS-DOS, create a printer driver using the Generic printer settings. You can then use this printer driver in FoxPro for Windows. To do this:
ARTICLE-ID: Q99542 TITLE : Printing Reports Created w/ Question Marks in FP for Win MORE INFORMATION
Steps to Reproduce ProblemThe following code causes a blank page to eject prior to the print job that is sent. It seems that the page eject occurs at the location of the first ??? command (that is, if you remove the first ??? command, the page eject occurs after the first line of text is printed).
** The escape codes in this program are for an HP laser printer. ** They are for illustration purposes only. SET PRINTER ON ??? '' && Opens printer in 'raw' mode ? "I set the printer in raw mode" ??? CHR(27)+"(s3B" ? "I am printing bold" ??? CHR (27) + "(s0B" ? "Now it's not bold" SET PRINTER OFF SET PRINTER TO |
Additional reference words: FoxWin 2.50 2.50a 2.50b
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |