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

Alternating grey background color of groupheader, footer and detail band

edited October 2009 in General
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

Comments

  • edited October 2009
    Hi Bas,

    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

    Best Regards,

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