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 1:21AM
    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

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.