>>>>Hi,
>>>>
>>>>I would like to dynamically color an Object in my report according to the color number in my curReport. How to do that?
>>>>Regards,
>>>>Koen
>>>
>>>
DO HOME(2)+"solution\main.prg"
>>>
>>>Check Reports->Use conditional formatting in a report.
>>Tore,
>>I am afraid the solution example does not give the answer, it shows how you can change an object to an other given color ( red ) in the example, hard coded red. I am looking for a possibility to show an object in my report in the color which is given in an other field of my curReport, a color which can be anything and not hardcoded.
>>So if the value of my colorfield is 255 the object will be red and if the value of my colorfield is 0 it will be black a.s.o.
>>Regards,
>>Koen
>
>I think (not sure) you can change:
>
>*:EFFECTS FORECOLOR = iif(SHIPPEDDATE > ORDERDATE + 10, rgb(255, 0, 0), rgb(0, 0, 0))
>
>
>to
>
>*:EFFECTS FORECOLOR = ColorField
>
>
>In User Data of the report, but you should use EffectsListener
Boris,
Thanks, I will study this.
Koen