PRB: Printer Drivers in an Executable File Not Working

Last reviewed: September 1, 1995
Article ID: Q87693
The information in this article applies to:
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, and 2.5a

SYMPTOMS

The printer drivers in a FoxPro for MS-DOS executable (.EXE) file do not work.

RESOLUTION

Open the project file and verify that GENPD.APP is included as an application and marked as excluded. If not, add GENPD.APP to the project as an application; doing so automatically marks the file for exclusion. Rebuild the project and the executable file.

If you are using FoxPro version 2.5 or later for MS-DOS, you must also distribute DRIVER2.PLB in the same project where you have added GENPD.APP. The DRIVER2.PLB file is located in the FOXPRO25\GOODIES\PDRIVERS directory.

NOTE: DRIVER2.PLB should be included in the project, and then marked excluded. It must also be distributed and put into the same directory as the .EXE file, along with the GENPD.APP.

GENPD.APP is automatically excluded if it is correctly included in the project. It should be included as an application, not as a program, by using the File Type list box. If GENPD.APP is included as a program, the error message "Line too long" is displayed when you try to build the application or executable file.

Distribute the GENPD.APP, FOXUSER.DBF, FOXUSER.FPT, PROAPI16.EXE, DRIVER2.PLB, and FOXSWAP.COM files with the executable file. (PROAPI16.EXE is not needed if you are using FoxPro version 2.5 or later.) Your application's installation procedure must copy these files into the same directory as the application.


Additional reference words: FoxDos 2.00 2.50 2.50a distribution kit dk
KBCategory: kbprint kbprg kbprb
KBSubcategory: FxprintDriver


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 1, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.