Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamic Color
Message
 
À
01/03/2018 08:48:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01658493
Message ID:
01658497
Vues:
66
>>>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
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform