Options

How to 'count' the number of lines printed in a report

alderoaldero Member Posts: 7
Hi all,

I need to determine the number of lines printed in a report in order to print the transfooter and transheader on the next page.

The report does not print the transfooter and transheader because it thinks there are no more lines in the report, but it skips to the next page because the Footer does not fit on the same page.

Did anyone find a solution for this

Thanks in advance

Alexander de Rooij

Comments

  • Options
    ArhontisArhontis Member Posts: 667
    You could make an global integer var, clear it at the start of the report.

    Increase it when a line is printed and add a new body section that SHOWOUTPUT(NoOfLines=30 (for example)) and if printed then clear the NoOfLines again. That way you don't use the transfooter, but you can calculate the height of the lines and the footer to match your page.
Sign In or Register to comment.