Consultor Eletrônico



Kbase P113008: OUTPUT TO PRINTER prints to incorrect queue
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/2/2011
Status: Verified

SYMPTOM(s):

OUTPUT TO PRINTER prints to incorrect queue

Using OUTPUT TO PRINTER <printer_name> to specify the printer.

One printer installed with name matching <printer_name> exactly

Other printer(s) installed with names beginning with <printer_name>

Print job does not go to print queue with exact match on <printer_name>

FACT(s) (Environment):

Windows
Progress 9.x
OpenEdge 10.x

CAUSE:

Bug# OE00126327

CAUSE:

The printer lookup does not check for an exact match on the name specified in the OUTPUT TO PRINTER statement.
Instead, it will return the last printer installed with a name that begins with the specified string.

FIX:

Workaround:
Remove and re-add the printer with the short name. This will put it last in the list of printers installed, so it will be found first.

If the printer with the short name is set as default printer, OUTPUT TO PRINTER without a <printer_name> will also work, but implementing this may require code changes.