How to Hide some row of detail band?

edited 2:50AM in FastReport 3.0
I have a master-detail report that in some condition I want to not print some row of detail data e.g. base on some field value

Field 'Bit' = 1 not print

A
1
>not print this row
2
3
B
3
C
1 ---->not print this row
2


This condition is preset by user before printibf

Comments

  • edited 2:50AM
    In the OnBeforePrint event of the band write the following:

    Band1.Visible := somecondition = True

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.