GroupHeader Iteration

edited 1:33PM in FastReport 3.0
Hi...

Does anyone knows how to compare the currently printed line inside a group-header/footer section if it's the last one so I can write some code in the "OnBefore..."-event??? I can use <Line> to check for the first one like:

MemoXYZ.Visible := <Line> = 1;

...but how to check for the last line?

Regards,
Marc

Comments

  • edited 1:33PM
    This kind of calculation needs two-pass report. On first pass you remember last line numbers, on second pass use it.
  • edited 1:33PM
    Okay....but how to get the last line number?
  • edited 1:33PM
    You can get it from group footer.onbeforeprint. Since you can't use <line> here, you should manually count databands using a script variable.

Leave a Comment