Toggle navigation
ReportBuilder Support Forums
Categories
Discussions
Activity
Sign In
Home
›
General
ReportBuilder 22.06 now available including Delphi 12.2 support!
New Blog Posts: Merging Reports -
Part 1
and
Part 2
Add a group at runtime
rbuser
February 2002
edited February 2002
in
General
As per subject. Is it possible?
The object is to have dynamic groups (ie the number of groups is not
known until runtime).
Any solutions/help appreciated.
Dave Nottage
Comments
rbuser
February 2002
edited February 2002
Dave, The following code works well for us.
Natalie
------------
{ add state group to report }
FppStateGroup := TppGroup.Create(frmARAgingReport);
FppStateGroup.Report := rrptAtlasReport;
FppStateGroup.BreakName := 'STATE';
FppStateGroup.DataPipeline := plARAging;
FppStateGroup.NewPage := True;
FppStateGroup.ResetPageNo := True;
{ add group header and footer bands }
FppStateGroupHBand := TppGroupHeaderBand.Create(frmARAgingReport);
FppStateGroupHBand.Group := FppStateGroup;
FppStateGroupHBand.Height := 0;
FppStateGroupFBand := TppGroupFooterBand.Create(frmARAgingReport);
FppStateGroupFBand.Group := FppStateGroup;
FppStateGroupFBand.Height := 0;
rbuser
February 2002
edited February 2002
"Natalie Boodram" wrote:
Thanks very much!
--
Dave Nottage
This discussion has been closed.
Comments
Natalie
------------
{ add state group to report }
FppStateGroup := TppGroup.Create(frmARAgingReport);
FppStateGroup.Report := rrptAtlasReport;
FppStateGroup.BreakName := 'STATE';
FppStateGroup.DataPipeline := plARAging;
FppStateGroup.NewPage := True;
FppStateGroup.ResetPageNo := True;
{ add group header and footer bands }
FppStateGroupHBand := TppGroupHeaderBand.Create(frmARAgingReport);
FppStateGroupHBand.Group := FppStateGroup;
FppStateGroupHBand.Height := 0;
FppStateGroupFBand := TppGroupFooterBand.Create(frmARAgingReport);
FppStateGroupFBand.Group := FppStateGroup;
FppStateGroupFBand.Height := 0;
Thanks very much!
--
Dave Nottage