Consultor Eletrônico



Kbase P138492: Getting error 98 or error 4110 with the OUTPUT TO statement when printing to a UNC printer on Window
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   27/05/2011
Status: Verified

SYMPTOM(s):

Getting error 98 or error 4110 printing to a UNC printer on Windows Vista.

Getting error 98 or error 4110 printing to a UNC printer on Windows 2008.

** Unable to open file: <file-name>. Errno=<number>. (98)

Unable to create Printer Device Context: . (4110)

Using the OUTPUT TO statement

Not using the OUTPUT TO PRINTER statement

FACT(s) (Environment):

Windows Server 2008
Windows Vista
Progress 9.x
OpenEdge 10.x
Windows 7

CHANGE:

Upgraded to Windows Vista or Windows 2008

CAUSE:

Bug# OE00178657

CAUSE:

Bug# OE00195477

CAUSE:

On Windows systems OUTPUT TO PRINTER should be used for printing.
The underlying C code for the OUTPUT TO PRINTER has been designed to better communicate with the Windows print system.
Do not use the older code construct OUTPUT TO when the destination is a printer on Windows as it may fail in some situations.

FIX:

Upgrade to 10.2B03 or later.

FIX:

Workaround may work in some cases:
Use the OUTPUT TO PRINTER statement:
Example:
OUTPUT TO PRINTER \\UNC_Path\Printername