Groupheader.visible

Hello,

I'm Trying to change the visible property of a band at runtime but don't really understand how to do so.

I tried to put this code in the OnBeginPage event :

Report1.Form
RapportChauf.FindObject('GroupHeader1').Visible := False;

It doesn't work.

I believe I'm wrong but don't where

Comments

  • edited 7:06PM
    You can change this property on report (OnBeforePrint)... if it's depending on some field value like this:
    begin
      IF ([Data."Field1"]) = 'BlaBla' then
      GroupHeader1.Visible := True else
        GroupHeader1.Visible := False;
    end
    

    ... Or you can transfer some variable from program to the report and then change visability of GroupHeader according to variable value.

Leave a Comment