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

Colored Column (RBuilder 10.4)

edited August 2009 in General
Hi,

we need to entirely color a column of a tabular report.

The fields of one row of this report are located on a region within the
detailband.

This region can stretch because of a stretching memofield (column 1).

Now we like to color column 2 as a whole colored area.

How could we do that?


Thank you for your help,
Josef Gschwendtner

Comments

  • edited August 2009
    Hi Josef,

    Two options...

    1. If you know the exact location of the column on the page, you can place
    a rectangle inside the PageStyle band which will print behind all report
    components.

    2. You can use the Report.CurrentColumn to determine which column you are
    in and dynamically change the color of a shape inside the detailband or the
    background of the region using the DetailBand.BeforePrint event.

    ex.

    if Report.CurrentColumn mod 2 = 0 then
    Region.Color := clBlue
    else
    Region.Color := clWhite;

    --
    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.