Kbase P115102: OUTPUT TO PRINTER truncates the output when PAGE-SIZE > 0
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  16/10/2008 |
|
Status: Unverified
FACT(s) (Environment):
Progress 9.x
OpenEdge 10.x
Windows
SYMPTOM(s):
Output text truncated at 80 characters in width
Paper page larger than 80 columns
Using Microsoft Generic / Text Only printer driver
OUTPUT TO PRINTER PAGED
PAGE-SIZE > 0
Output text not truncated if using PAGE-SIZE 0
Using either GUI or character mode client
CAUSE:
When the output is PAGED and the PAGE-SIZE is not 0, Progress will use the character width of the output device (the printer) as reported by its driver to format the lines of output. The Generic / Text Only driver reports 80 characters wide pages in its default configuration.
FIX:
There are several options to work around this issue:
1. do not use the Generic / Text Only driver. Use a printer driver specific to the printer.
2. change the configuration of the printer driver for a larger paper size (for example A3). Larger paper sizes will make the driver report more columns in width.
3. modify the 4GL code to output to a file using STREAM output instead, and then COPY the file to LPT1. This will bypass the driver as well.
4. run the client session with additional startup parameters -Wa -Wpp. This will direct the print engine to bypass the drivers to output data to the driver. Note however that this setting affects output to all printers on the system.