carsten wrote on Jul 21
st, 2006 at 9:12am:
I would also be satisfied to do this on a report basis.
In a report, you can change the font color (but not the background color) with @Color or RGBColor. RGBColor gives you more control over the color than @Color does.
As an example, the following code placed in the "Payment Type :: On Print" event will produce red text if the payment is "Cash" and black text if the payment is a "Check". This will give you an idea how it works. You should be able to adapt it to your own report.
If Payment Type = "Cash"
// Red Text
RGBColor(Payment Type, 255, 0, 0, 255, 255, 255)
Else
// Black Text
RGBColor(Payment Type, 0, 0, 0, 255, 255, 255)
You can read about RGBColor on page 209 of the Programming Guide. The background settings have no effect in reports. You can only control the font color.