Microsoft KB Archive/87693

{| = PRB: Printer Drivers in an Executable File Not Working =
 * width="100%"|

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 &quot;Line too long&quot; 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
 * }