Consultor Eletrônico



Kbase 15865: Unable to create PRINTER DEVICE CONTEXT: LPTx
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/10/1998
Unable to create PRINTER DEVICE CONTEXT: LPTx

If more than one printer is defined within MS Windows 3.x, Microsoft
appends the [printerports] and [device] sections of the WIN.INI file
with the second printers information as the example below indicates:
[printerports]
hp laserjet III=hppcl5a,lpt1:,15,45,lpt2:,15,45
[device]
hp laserjet III=hppcl5a,lpt1:,lpt2:

Since Progress is limited to one driver per statement it's neccesary
to work around this limitation by modifying the WIN.INI as follows:
[printerports]
hp laserjet III=hppcl5a,lpt1:,15,45
hp laserjet II=hppcl5a,lpt2:,15,45
[device]
hp laserjet III=hppcl5a,lpt1
hp laserjet II=hppcl5a,lpt2:

NOTE: This is a limited work around since these enties can be modified
by MS Windows, thus re-creating the problem when drivers are
modified or added.

On Win95 make sure that lptn is captured for the network printer. You
can check this under "Printer Properties" -> "Details". If there is no
printer port captured, click on the "Capture Printer Port.." button to
add one. Then change the setting from "\\servername\printername" to
"LPTN: [\\servername\printername]".

NOTE: Under WIN95 it seems that this information is very sensitive
where it concerns UPPER- and lowercase. You'll find that you'll have
to put everything in UPPERCASE.
(mhu - Mar 2,1998)

Progress Software Technical Support Note # 15865