How to Add conditinal color based on a varaible's value

Stimulsoft Reports.NET discussion
Post Reply
Doron
Posts: 8
Joined: Wed Apr 05, 2023 9:42 pm

How to Add conditinal color based on a varaible's value

Post by Doron »

Hi There,

I see that under the text brush i can insert an expression:
The default is black and need to turn it to a blue:
How is that can be done? That is in a text box.

if (ReportType == "Standard PO Report" && Summary_Only == 1)
{
SolidBrushValue("#0000FF") ;
}
else
{
SolidBrushValue("#000000");
}

Thanks,

Doron
Lech Kulikowski
Posts: 7354
Joined: Tue Mar 20, 2018 5:34 am

Re: How to Add conditinal color based on a varaible's value

Post by Lech Kulikowski »

Hello,

You can use the Brush Expression option.

Thank you.
Attachments
Screenshot 2025-08-13 234322.png
Screenshot 2025-08-13 234322.png (217.76 KiB) Viewed 306 times
Post Reply