Microsoft KB Archive/128251

{| = PRB: Using the EJECT Command Causes "Sending this print..." =
 * width="100%"|

ID: Q128251

2.60a MACINTOSH kbprint kbprb

The information in this article applies to:


 * Microsoft FoxPro for Macintosh, version 2.6a

SYMPTOMS
Using the EJECT command in a Program in FoxPro for Macintosh causes the following Message to appear:

Microsoft FoxPro Sending this print job cancels the current print job. Proceed? If you click the no button, the dialog keeps coming up. If you click the yes button, the dialog goes away. NOTE: This behavior does not occur in Visual FoxPro for Macintosh.

RESOLUTION
You cannot use the EJECT command with Foxpro for the Macintosh. Use these two lines of code instead:

SET PRINTER TO  SET DEVICE TO PRINT

STATUS
This behavior is by design.

Steps to Reproduce Problem
Create and run the following program:


 * Program with the Problem SET DEVICE TO PRINT @ 1,1 Say "Hello, First Page" EJECT @ 1,1 Say "Second Page!!!" SET DEVICE TO SCREEN SET PRINTER OFF SET PRINTER TO ***end of Program

Example Workaround

 * Corrected Program SET DEVICE TO PRINT @ 1,1 Say "Hello, First Page" SET PRINTER TO SET DEVICE TO PRINT @ 1,1 Say "Second Page!!!" SET DEVICE TO SCREEN SET PRINTER OFF SET PRINTER TO ***end of Program

Additional reference words: 2.60a Error Printing KBCategory: kbprint kbprb KBSubcategory: FxprintRaw

Keywords         : FxprintRaw Version          : 2.60a Platform         : MACINTOSH
 * }