Enabling & Disabling components for continuation page
i have RTM which is loaded into subreport compoent at runtime.
I would like to enable & disable some components if there is a continuation
page.
i tried this but seems not to be working. The codes i had assigned it on RAP
Detail.b4print & the components are stored in header band
if Detail.Overflow = True then begin
rptBMPLSPAL1a_Header.Visible := True;
rptBMPLSPAL1a_Header1.Visible := False;
SystemVariable2.Visible := False;
SystemVariable3.Visible := False;
end
else if Detail.Overflow = False then begin
rptBMPLSPAL1a_Header.Visible := False;
rptBMPLSPAL1a_Header1.Visible := True;
SystemVariable2.Visible := True;
SystemVariable3.Visible := True;
end;
I'm currrently using RB7.0(Ent) with Delphi5(Ent)
I would like to enable & disable some components if there is a continuation
page.
i tried this but seems not to be working. The codes i had assigned it on RAP
Detail.b4print & the components are stored in header band
if Detail.Overflow = True then begin
rptBMPLSPAL1a_Header.Visible := True;
rptBMPLSPAL1a_Header1.Visible := False;
SystemVariable2.Visible := False;
SystemVariable3.Visible := False;
end
else if Detail.Overflow = False then begin
rptBMPLSPAL1a_Header.Visible := False;
rptBMPLSPAL1a_Header1.Visible := True;
SystemVariable2.Visible := True;
SystemVariable3.Visible := True;
end;
I'm currrently using RB7.0(Ent) with Delphi5(Ent)
This discussion has been closed.
Comments
You will not want to use the Detail.BeforePrint event when trying to
enable/disable components in the header band. Try using the
Header.BeforePrint event and see if that helps.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com