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

Enabling & Disabling components for continuation page

edited June 2003 in General
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)

Comments

  • edited June 2003
    Nagen,

    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.

    --
    Best Regards,

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