Kbase P74191: Output to printer produces garbled data.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  3/29/2004 |
|
Status: Unverified
FACT(s) (Environment):
Linux Intel
FACT(s) (Environment):
Progress 9.1D
SYMPTOM(s):
Output to printer produces garbled data.
Code is using a loop that includes code similar to:
REPEAT:
OUTPUT TO PRINTER.
/* here you display printer bound stuff */
OUTPUT TERMINAL.
/* here you display terminal bound stuff */
END.
CAUSE:
Neither the output stream to the printer nor that to the terminal were being closed.
FIX:
Rewrite the code to ensure that the printer OUTPUT stream is closed before opening that of the TERMINAL and vice versa:
REPEAT:
OUTPUT TO PRINTER.
/* here you display printer bound stuff */
OUTPUT CLOSE.
OUTPUT TERMINAL.
/* here you display terminal bound stuff */
OUTPUT CLOSE.
END.