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

Possiblity to change band property of a region

edited September 2005 in RAP
Hello,

I have about ten Group Footer Bands in my Report, and I use just one to
print informations (dynamic...).
Either I put components in each Group Footer Band, and put visibility on or
off (Too many components to manage...), either i get just one region with
components and i move in the appropriate GFBand.
I like this way, but doesn't work !!
I try to put Region.Parent or Region.Band in OnReportBeforePrint but
nothing.
Thx for your help.

Jim.

Comments

  • edited September 2005
    Hi Jim,

    I would suggest getting this working in Delphi before trying it in RAP. In
    my testing with the following code inside the Report.BeforePrint event, the
    region I created successfully to the footer band.

    var
    lRegion: TppRegion;
    begin

    {Create a region}
    lRegion := TppRegion.Create(nil);
    lRegion.Band := Report.DetailBand;
    lRegion.ParentWidth := True;
    lRegion.ParentHeight := True;

    {Move the regions}
    lRegion.Band := Report.FooterBand;
    Region1.Band := Report.DetailBand;

    end;

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.