Condition Groupheader
Hi, I have to change the header group based on the value of a variable, is this feasible?
procedure GroupHeader1OnBeforePrint(Sender: TfrxComponent);
begin
IF <RGP>='REP' THEN
begin
GroupHeader1.Condition := <frxDBDataset1."DESREP">;
frxDBRGP.DataSet:=<frxDBDataset1."DESREP">;
end
ELSE
IF <RGP> = 'TIP' THEN
begin
GroupHeader1.Condition:= <frxDBDataset1."DESTIP">;
frxDBRGP.DataSet:=<frxDBDataset1."DESTIP">;
end;
end;
questo è il codice che avevo scritto ma non va
Comments
G'day,
I have not needed to do this myself, but I suspect that your code is in the "wrong" Event Method. It is probably "too late" in the sequence to do what you want.
Have you tried the Report's "OnBeginDoc" Event Method?
Cheers, Paul