Consultor Eletrônico



Kbase P56251: Workaround for error 4110 when printing to an IPP printer
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   03/12/2005
Status: Unverified

SYMPTOM(s):

Workaround for error 4110 when printing to an IPP printer

Unable to create Printer Device Context: "\\http://<IPP_Printer_Host>\<IPP_Printer>". (4110)

Using code: OUTPUT TO PRINTER "<IPP_Printer_Name>".

Using printer name as displayed in SESSION:GET-PRINTERS()

OUTPUT TO PRINTER "<IPP_Printer_Name>" using full UNC path to IPP printer fails

Can print to the IPP printer from other applications

Cannot print to the IPP printer from DOS

Internet Information Server is running

Settings of the following registry keys are correct:

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Devices
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\PrinterPorts

CAUSE:

No known cause at time of writing

FIX:

To workaround this problem, use either of the following code samples. The first example requires user-intervention. The second example does not.

/* example 1 */
SYSTEM-DIALOG PRINTER-SETUP.
/* select IPP printer and then OK */
OUTPUT TO PRINTER.
DISPLAY "test".
OUTPUT CLOSE.


/* example 2 */
SESSION:PRINTER-NAME = "<IPP_Printer_Name>".
OUTPUT TO PRINTER.
DISPLAY "test".
OUTPUT CLOSE.