Microsoft KB Archive/97631

{|
 * width="100%"|

-

The information in this article applies to:


 * Microsoft FoxPro for MS-DOS, versions 2.0, 2.5

-

SYMPTOMS
The SET PDSETUP TO command will result in the error &quot;Use of transgressed handle&quot; if the HP DeskJet+ printer driver is set as the default printer driver (or under certain circumstances, just if this printer driver is selected) and output is sent to the printer.

RESOLUTION
To work around this problem, either don't set this printer driver as the default printer driver or change the default DRIVER2.PLB to DRIVER.PRG. This can be done by modifying GENPD.PJX and editing GEN_PD.PRG to include the following changes: 

  * If you would like to use the XBase version of the printer driver, * uncomment the line below _PDRIVER = &quot;DRIVER.PRG&quot; * and make the line below a comment. *    _PDRIVER = &quot;DRIVER2.PLB&quot; This change will slow down printing but should be more reliable. After you edit GEN_PD.PRG, you must rebuild GENPD.APP.

STATUS
Microsoft has confirmed this to be a problem in FoxPro versions 2.0 and 2.5 for MS-DOS. This problem was corrected in FoxPro version 2.5a for MS-DOS.

Steps to Reproduce Problem
 Set up a printer driver for the HP DeskJet+. From the File menu, choose Printer Setup, and set this printer driver as the default printer driver.  Send output to the printer. For example, type the following in the Command window:       TYPE \foxpro25\tutorial\step1.qpr TO PRINT   Type the following in the Command window:       SET PDSETUP TO 

Additional query words: FoxDos pdriver genpd pdsetup _pdsetup hp plus buglist2.00 buglist2.50 fixlist2.50a

Keywords         : Version          : Platform         : Issue type       :
 * }