Conditional highliting.
Hello.
I'm using Delphi2010 and FR4.0, I'm not using .NET.
Is there a way to add more than one condition in highliting detail field?
As far as I can see in Report Designer I can pick only one conditiong to color one field...
I want to make a few conditions to one cell depending on value.
Thanks
I'm using Delphi2010 and FR4.0, I'm not using .NET.
Is there a way to add more than one condition in highliting detail field?
As far as I can see in Report Designer I can pick only one conditiong to color one field...
I want to make a few conditions to one cell depending on value.
Thanks
Comments
Use the OnBeforePrint event of the master band (or wherever the memo is)
In the code section of the report write your conditions.
Don't forget to include the default if no condition is met.
Otherwise the memos that do not meet the condition, but follow one that did, will have the same colour as the one that did.
example code colouring red if < 0, yellow if = 0, red if = 99 and white if no condition met is shown below.
Yep, that was my mistake ;-)
and this code should be in the onBeforePrint of the detail band (as you are testing frxDBDatasetDetail."nazwa_wejscie")
Yeah got it figured out with nested IF, thanks for your effort and help!