Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic Color
Message
From
02/03/2018 08:02:55
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01658493
Message ID:
01658508
Views:
103
>>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform