Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Add a group at runtime

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

  • 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;


  • edited February 2002
    "Natalie Boodram" wrote:

    Thanks very much!

    --
    Dave Nottage
This discussion has been closed.