GroupFooter Height
FAlvarado
US/Mexico
Hi all:
How can I set the height of the group footer in code to accommodate only the visible items?
this procedure works and set visible the memos:
procedure frxDBDataset1SubContractor1OnBeforePrint(Sender: TfrxComponent);
begin
frxDBDataset1SubContractor1.Visible := Length(<frxDBDataset1."SubContractor1">) > 0;
frxDBDataset1SubContractor2.Visible := Length(<frxDBDataset1."SubContractor2">) > 0;
...
end;
.. but this is not working!
procedure GroupFooter1OnAfterPrint (Sender: TfrxComponent);
begin
GroupFooter1.Height := 0.90;
if frxDBDataset1SubContractor1.Visible then
GroupFooter1.Height := GroupFooter1.Height + 0.20;
if frxDBDataset1SubContractor2.Visible then
GroupFooter1.Height := GroupFooter1.Height + 0.20;
...
end;
OnAfterCalcHeight and OnBeforePtint events don't work either...
Any suggestions?
Best Regards
Francisco Alvarado
How can I set the height of the group footer in code to accommodate only the visible items?
this procedure works and set visible the memos:
procedure frxDBDataset1SubContractor1OnBeforePrint(Sender: TfrxComponent);
begin
frxDBDataset1SubContractor1.Visible := Length(<frxDBDataset1."SubContractor1">) > 0;
frxDBDataset1SubContractor2.Visible := Length(<frxDBDataset1."SubContractor2">) > 0;
...
end;
.. but this is not working!
procedure GroupFooter1OnAfterPrint (Sender: TfrxComponent);
begin
GroupFooter1.Height := 0.90;
if frxDBDataset1SubContractor1.Visible then
GroupFooter1.Height := GroupFooter1.Height + 0.20;
if frxDBDataset1SubContractor2.Visible then
GroupFooter1.Height := GroupFooter1.Height + 0.20;
...
end;
OnAfterCalcHeight and OnBeforePtint events don't work either...
Any suggestions?
Best Regards
Francisco Alvarado
Comments
try something like this in OnBeforePrint:
greetz
Thank you
Francisco Alvarado
write coden to hide the child band
Francisco Alvarado