Alternating grey background color of groupheader, footer and detail band
Hi all,
Because of the large number of small printed records i would like to make
it easier for the user to read the report by alternating the background color
of the data-lines (like the good old linefeed printers used to use :-))
I thought this wouldnt be too difficult by using the onprint event of every
band and alternating the background color, but now i see that a band doenst
have a backgroundcolor property :-(((
Does anyone know a nice flexibel way to get this done? I want to do this
fully runtime as the user can change the design and doesnt want to be troubled
with this thing when designing
greeetings
Bas Schouten
Because of the large number of small printed records i would like to make
it easier for the user to read the report by alternating the background color
of the data-lines (like the good old linefeed printers used to use :-))
I thought this wouldnt be too difficult by using the onprint event of every
band and alternating the background color, but now i see that a band doenst
have a backgroundcolor property :-(((
Does anyone know a nice flexibel way to get this done? I want to do this
fully runtime as the user can change the design and doesnt want to be troubled
with this thing when designing
greeetings
Bas Schouten
This discussion has been closed.
Comments
The easiest way to do this is to add a colored shape to the band with
ParentHeight and ParentWidth properties set to True. Then toggle the
visibility of the shape using an event such as the Band.BeforePrint event.
This is a feature we are strongly considering adding to a later release of
ReportBuilder.
begin
Shape.Visible := not(Shape.Visible);
end;
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com