Mimicking Green Bar
?I've got the Green Bar in place but I can't get it to be visible on
every third line.
JTWJ
--- posted by geoForum on http://www.newswhat.com
every third line.
JTWJ
--- posted by geoForum on http://www.newswhat.com
This discussion has been closed.
Comments
this behavior using a shape and toggling its visibility in the
Band.BeforePrint event.
procedure TForm1.ppDetailBand1BeforePrint(Sender: TObject);
begin
if ppDetailBand1.Count mod 3 = 0 then
ppShape1.Visible := True
else
ppShape1.Visible := False;
end;
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
report where there is not any procedure TForm1. and there is not any
(Sender: Tobject);
ReportBuilder. Otherwise, this would have to be custom behavior that
you add manually.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I figured it out. I put a dbCalc on the detail line and used the Count
property.
But there is something odd. I had to use:
GreenBar.Visible := dbCalc.Value Mod 3 = 2;
instead of:
GreenBar.Visible := dbCalc.Value Mod 3 = 0;
in order to get the desired effect.
It seems the dbCalc gets it's true value after the Detail Band Before
Print fires.