Page 1 of 1

Text Font Colour

Posted: Wed May 14, 2025 8:50 am
by admin@secsol.co.uk
Hi, my data source for my report contains a business object with two field value : StatusMessage and StatusColour.

I can set the value for a Text field on the report to show the StatusMessage, but how can I set the font colour to show using the value of StatusColour?

Thanks

Re: Text Font Colour

Posted: Wed May 14, 2025 2:36 pm
by Max Shamanov
Hello,

You can try to use conditions to change the colour of the font.
Please check the following link to our documentation:
https://www.stimulsoft.com/en/documenta ... atting.htm


Thank you.

Re: Text Font Colour

Posted: Wed May 14, 2025 7:59 pm
by admin@secsol.co.uk
Hi, thanks I have used the conditions to change a font colour to Red before, but in this case I want to change the font colour to the value specified in the field StatusColour from the business object.

Re: Text Font Colour

Posted: Wed May 14, 2025 9:50 pm
by Lech Kulikowski
Hello,

You can use the Brush Expression property.

Thank you.

Re: Text Font Colour

Posted: Thu May 22, 2025 10:44 am
by admin@secsol.co.uk
Hi, Thanks for that.

When I try this on mine if I set the Text Brush to {EstimateStatistics.StatusColor} the font changes colour as expected, but if I set the Brush to {EstimateStatistics.StatusColor} the background doesn't change - any reason for that?

Also, in the Edit Expression screen the + signs on the data on the right hand side don't appear to do anything so I can't select from a data source/business object.

Re: Text Font Colour

Posted: Thu May 22, 2025 12:18 pm
by Lech Kulikowski
Hello,

Please send us a sample report with test data that reproduces the issue for analysis.

Thank you.