PRB: Using the EJECT Command Causes "Sending this print..."

Last reviewed: June 18, 1996
Article ID: Q128251
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.

MORE INFORMATION

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


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: June 18, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.