Consultor Eletrônico



Kbase 13978: Unable to create Printer Device Context(4110) MSWindows & NT
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   1/20/2000
Unable to create Printer Device Context(4110) MSWindows & NT

For Win 3.X:

When printing in MS-Windows, a Printer Device Context is created to
allow Progress to use the MS-Windows printing facilities. When
specifying OUTPUT TO <op-sys device>, where device name is LPT1, COM1
for example, this error indicates that more than one device in printer
setup is defined as the same printer or that the device being print
to is not defined at all.

The resolution would be to define only one printer for each op-sys
device in the Control Panel section of MS-Windows.

For Win NT:

This is also true when running under Windows NT. However, under
Windows NT you may need to assign a op-sys device name(port) to the
network printer. Customers should refer to their network
documentation on the exact command syntax. Under Windows NT
networking this is done by entering the following command:

net use lpt3 /
etwork_printer

This will direct any output specified through Progress via the
OUTPUT TO lpt3 to be directed to the network printer identified as
/
etwork_printer.

For Win95:

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]".

Peer-to-Peer Printing, WIN95

If several WIN95 stations are setup in a peer-to-peer network, with
printers attached to one WIN95 station and shared with the rest of the
workstations, you will receive the 4110 if you are trying to print to
an lpt port in the 4gl code.

There is no way to capture a lpt port in a peer-to-peer situation. You
may code the 4GL for output to printer and it will work to any printer
set up and shared on the WIN95 station you are working from.

You may also use the System-dialog Printer-Setup with the situation

Progress Software Technical Support Note # 13978