Colored Column (RBuilder 10.4)
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
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
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com