LimeReport Forum
General Category | Основное => Discussion | Обсуждение => Topic started by: CorsaiR on July 31, 2016, 08:33:18 pm
-
Hi.
I need to color text depending on its value. I didn't find somewhat similar to conditional formatting. Can I use script for this?
Thanks,
Alex
-
Hi!
U can do it using script
Look the demo report "change_item_from_script.lrxml" from demo_r1\demo_reports
It's can help you.
Below sample from that demo report
$S{
var color = new QColor('#DEB887');
var font = new QFont('Times New Roman',26,false,true);
THIS.backgroundColor = color;
THIS.fontColor = QColor('red');
THIS.font = font;
'Test'}
-
Subst, Thank you