TppPageBreak.Visible does not seem to work
Using ReportBuilder 14.08 with Delphi2007
Placed PageBreak on Report. Set its visible property to FALSE.
Turned PageBreak.Visible := True, based on the "BeforePrint" Event of
the Details Band.
Was expecting to only see the page break when data met a specific criterian
RAP Code ( below ):
procedure DetailBeforePrint;
begin
RegionVoucher.Visible := (Rpt['RecordType']='2') and
(Rpt['TranLineEntryType']='GC');
VoucherPageBreak.Visible := RegionVoucher.Visible;
end;
Do not know what to do next.
Kind Regards,
Robert.
Placed PageBreak on Report. Set its visible property to FALSE.
Turned PageBreak.Visible := True, based on the "BeforePrint" Event of
the Details Band.
Was expecting to only see the page break when data met a specific criterian
RAP Code ( below ):
procedure DetailBeforePrint;
begin
RegionVoucher.Visible := (Rpt['RecordType']='2') and
(Rpt['TranLineEntryType']='GC');
VoucherPageBreak.Visible := RegionVoucher.Visible;
end;
Do not know what to do next.
Kind Regards,
Robert.
This discussion has been closed.
Comments
What I am trying to do is basically put a page break in at tun time, in
the RAP code.
still have not sorted it out.
I performed a quick test with the latest version of ReportBuilder and
was successfully able to add a PageBreak component to a report in RAP code.
procedure ReportBeforePrint;
var
lPageBreak: TppPageBreak;
begin
lPageBreak := TppPageBreak.Create(nil);
lPageBreak.Band := Detail;
end;
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com