How do I add Groups at runtime?
I am trying to add a Group at runtime using the following code:
Procedure AddReportGroup;
Var
TempGroup : TppGroup;
Begin
TempGroup := TppGroup.Create(Self);
TempGroup.BreakName := 'AccountNunber';
TempGroup.BreakType := btDataField;
ppReport1.AddGroup(TempGroup);
End;
But it is giving an error at the Addgroup(..) line. Do I need set any
another properties..??
Thanks in Advance,
Vikram
Procedure AddReportGroup;
Var
TempGroup : TppGroup;
Begin
TempGroup := TppGroup.Create(Self);
TempGroup.BreakName := 'AccountNunber';
TempGroup.BreakType := btDataField;
ppReport1.AddGroup(TempGroup);
End;
But it is giving an error at the Addgroup(..) line. Do I need set any
another properties..??
Thanks in Advance,
Vikram
This discussion has been closed.
Comments
TempGroup.Report := ppReport1.
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com