GroupHeader Iteration

edited 1:51PM 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:51PM
    This kind of calculation needs two-pass report. On first pass you remember last line numbers, on second pass use it.
  • edited 1:51PM
    Okay....but how to get the last line number?
  • edited 1:51PM
    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.