Information générale
Catégorie:
Gestionnaire de rapports & Rapports
>In report designer:
>
>When I drag a field from the DataEnvironment, I can set its ForeColor and BackColor, but is it possible to set this in run-time based on the field's value? I've tried using replace .FRX itself, but the PenRed, PenGreen and PenBlue field in .FRX are all constants, so I can't replace them with variable...
>
>Any idea?
>
>Chris Lee
I have use the following approach:
add code with a do case
case this value set color to red
case this other value set color to yellow
at run time you can't use 192,192,192
either use the color's value or set value = to rgb(255,255,0) for example
the trick is to find a good spot for the code
good luck
Art Castro
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement