I'm trying to change the color of a text component dynamically: the color comes from the data source (every row has a different color, defined as hex-string).
So I tried different approaches, nothing works on .Net Core, but on .Net Framework it works all:
- BeginRender event:
Code: Select all
Stimulsoft.Base.Drawing.StiSolidBrush b = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.ColorTranslator.FromHtml(positions.cat_color));
Text8.TextBrush = b;
Code: Select all
<font color="{positions.cat_color}">
{positions.cat_name}
</font>
(btw, I'm currently evaluating your product, as we currently use SSRS. Since we want to move to AWS Lambda, we have to use a reporting solution which works with either Node.JS or .Net Core on Linux). So Stimulsoft looked like a good fit. However, in SSRS we are used to be able to use expressions in basically all properties. So it offers a very high degree of complex reports. Your product on .Net Framework seems to offer the same high degree of customisation by using events. But as mentioned above, your product doesn't offer events on JS or .Net Core, and it doesn't offer expressions for all properties (like Text Color). So I am a bit hesitating how we could make the switch to your product, if we can't solve this rather simple problem of changing the text color dynamically. I would really appreciate your help here.
thanks,
Rafael