The OnPrint event of a component can be used to toggle it's visibility using the Visible property. If you need to hide an entire band, try setting the visibility of the band in the BeforePrint event.
if [Condition] then MyComponent.Visible := False else MyComponent.Visible := True;
Comments
The OnPrint event of a component can be used to toggle it's visibility using
the Visible property. If you need to hide an entire band, try setting the
visibility of the band in the BeforePrint event.
if [Condition] then
MyComponent.Visible := False
else
MyComponent.Visible := True;
or
MyComponent.Visible := not([Condition])
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Your advice fixed my problem - I used the BeforePrint event to prevent a
line from printing. Too easy
Thanks
Bruce