How-To change Text.Brush depending on CountIF - Expression in same text component
Posted: Wed Apr 16, 2008 8:16 am
Hi,
i'm wondering how to change the Brush property of a text component depending on the calculated "value" of the text expression of the same text component.
My text-expression on component Text18 is defined as follows:
My goal is to set
if the value of Text18 > 20 (for example). As an additional info - the Format of Text18 is set to % (corresponding to the example Text18 > 20,00%)
Any Ideas?
By the way - a documentation of the rendering process an the workings of the events (GetValue, BeforePrint,...) would be highly appreciated.
Thanks
Markus
i'm wondering how to change the Brush property of a text component depending on the calculated "value" of the text expression of the same text component.
My text-expression on component Text18 is defined as follows:
Code: Select all
{IIf(Count(DataBand1) > 0, CountIf(DataBand1, Person.UID_Department="") / Count(DataBand1), 0)}
Code: Select all
Text18.Brush = New Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Red)
Any Ideas?
By the way - a documentation of the rendering process an the workings of the events (GetValue, BeforePrint,...) would be highly appreciated.
Thanks
Markus