Kbase P21114: OUTPUT CONVERT takes non-default printer
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  12/14/2009 |
|
Status: Verified
SYMPTOM(s):
OUTPUT CONVERT takes non-default printer
Following code OUTPUT TO VALUE(SESSION:PRINTER-NAME) CONVERT TARGET "ibm850" SOURCE SESSION:CHARSET PAGE-SIZE 60 does not pick up the default printer.
OUTPUT without CONVERT option works fine.
Using the -o parameter does not help
More than one printer setup on client
FACT(s) (Environment):
Progress 9.1X
Windows NT 32 Intel/Windows 2000
CAUSE:
Bug# OE00087464
CAUSE:
This is a known issue - using the OUTPUT TO PRINTER statement with CONVERT option chooses another printer instead of taking the default printer.
FIX:
This issue has been fixed in OpenEdge 10.0A
Workaround the problem following way:
DEFINE VARIABLE printername AS CHARACTER NO-UNDO.
DEFINE VARIABLE portname AS CHARACTER NO-UNDO.
DEFINE VARIABLE success AS LOGICAL NO-UNDO.
RUN aderb/_prdef.p (OUTPUT printername,
OUTPUT portname,
OUTPUT success
).
OUTPUT TO PRINTER VALUE(portname) CONVERT TARGET "ibm850" SOURCE SESSION:CHARSET PAGE-SIZE 60.