Possiblity to change band property of a region
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.
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.
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com