Invert |
Michael Gerling
03/29/2018 13:54
Set Bold oder Italic for all Fields in a Row depending on one Bool Value in the row
I got a working Report. Now I'd like to Format some rows in Bold or italic depending on the bool Value of one Field.
I guess this should be possible in Bindings, Font Section of the relevant Fields. But now I'm missing the correct Syntax to do so... Maybe you could give me a hint.
actually I tried it that way:
Code: |
if((bool) datenband1["InternAbwesend"])
{
return New FontDescriptor(new Font("Microsoft Sans Serif", 9.75, FontStyle.Bold));
}
else
{
return New FontDescriptor(new Font("Microsoft Sans Serif", 9.75, FontStyle.Normal));
} |
Thanks
Michael
|