Groups working invible?

Hi,

why when I set GroupHeader.visible to false it stell working?

Code of my Print button:
begin
  ...
  //get the object into a variable to manipulate
  cp := frxReport1.FindObject('GroupHeaderUNIDADE');
  ghUnidade := (cp as TfrxGroupHeader);
  cp := frxReport1.FindObject('GroupFooterUNIDADE');
  gfUnidade := (cp as TfrxGroupFooter);
 
  cp := frxReport1.FindObject('GroupHeaderREFERENCIA');
  ghReferencia := (cp as TfrxGroupHeader);
  cp := frxReport1.FindObject('GroupFooterREFERENCIA');
  gfReferencia := (cp as TfrxGroupFooter);
  
  //Set properties as checkbox was set by user
  ghUnidade.StartNewPage := ckNovaPagina.checked;
  ghUnidade.Visible      := ckUnidade.Checked;
  gfUnidade.Visible      := ckUnidade.Checked;
 
  ghReferencia.StartNewPage := fraReferencia1.ckNovaPagina.Checked;
  ghReferencia.Visible      := fraReferencia1.ckAgrupar.Checked;
  gfReferencia.Visible      := fraReferencia1.ckAgrupar.Checked;
  ..
end;
ghUnidade is inside ghReferencia.

whell when the user set to not view the ghReferencia
the group really desapear but stell working

If I could send a attachment with a prepared report showing the problem
you will see the group "Unidade" broken (separated of itself) on page 2 for no reason.

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.