Kbase P133566: 4GL/ABL: Check writing procedure fails to print the first line after the first page.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  7/23/2008 |
|
Status: Unverified
SYMPTOM(s):
4GL/ABL: Check writing procedure fails to print the first line after the first page.
Code is using the OUTPUT TO PRINTER PAGED, PUT and PAGE statements.
Code prints lines of information and a check on each page.
Code uses a variable to store the number of lines printed.
Printing is accurate on first page but fails to print the first line on subsequent pages.
FACT(s) (Environment):
All Supported Operating Systems
Progress 8.x
Progress 9.x
OpenEdge 10.x
OpenEdge Category: Language (4GL/ABL)
CAUSE:
The code is missing the SKIP option from multiple PUT statements and is incorrectly counting the printed lines.
FIX:
Adding the required SKIP option to the PUT statements and using the LINE-COUNTER function instead of using a variable to count the output lines corrected the procedure and made it print the information and the checks as desired.