Kbase P50184: Procedure is unable to print barcode in windows CHUI (TTY) mode.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  3/8/2010 |
|
Status: Verified
SYMPTOM(s):
Procedure is unable to print barcode in windows CHUI (TTY) mode.
Same procedure prints barcode in windows GUI mode.
Procedure includes the statements:
OUTPUT TO PRINTER .
PUT CONTROL bar-code-string.
FACT(s) (Environment):
Windows 2000
Progress 9.1C
CAUSE:
The exact cause is unknown at the time of this writing
FIX:
The solution is to send the barcode to a file and then use the OS-COMMAND SILENT COPY statement to send the barcode file to the printer. That is replace the two statements:
OUTPUT TO PRINTER .
PUT CONTROL bar-code-string.
with:
DEFINE VARIABLE cPrinterName AS CHARACTER NO-UNDO.
cPrinterName = SESSION:PRINTER-NAME.
OUTPUT TO SomeFileName.
Put control bar-code-string.
OS-COMMAND SILENT COPY "SomeFileName" value(cPrinterName).