Hi,
I am building a report based on data in an xml file. the file also contains information on colour for certain value in the format Color [A=255, R=239, G=43, B=45].
I can read the file into stimulsoft no problem, including the color value (it just appears as a string field). What I need to do is change the background colour of a text box based on the color value from the xml at runtime.
I can if neccessary have the color value written to the xml file as an integer value if that is more appropriate.
I would like to do all of the formatting inside the mrt file, so at runtime the application just opens the file & it formats colours as required.
Thanks
Jon.
Conditional Formatting of Background Colour
Conditional Formatting of Background Colour
Sorted it out from another answer on this forum
solution is
Dim backColor As String
backColor = {Field.FieldValue}
Text1.Brush = New StiSolidBrush(ColorTranslator.FromOle(backColor))
Thanks,
Jon.
solution is
Dim backColor As String
backColor = {Field.FieldValue}
Text1.Brush = New StiSolidBrush(ColorTranslator.FromOle(backColor))
Thanks,
Jon.
Conditional Formatting of Background Colour
Hello, Jon.
If you need a more specific response, please send us your report template.
Thank you.
Yes, this is a solution for your problem.Ink wrote:Sorted it out from another answer on this forum
solution is
Dim backColor As String
backColor = {Field.FieldValue}
Text1.Brush = New StiSolidBrush(ColorTranslator.FromOle(backColor))
If you need a more specific response, please send us your report template.
Thank you.