Friday, February 24, 2012

Custom color for text

Hello. I have a textbox in which I want to customize the color of the text. When you go to Properties->Color, the pull-down lets you choose from a pre-defined list of colors by name (Black, DimGray, Gray, etc.) You can also enter an expression. What I want to do is customize a color that is different than the predefined colors. For example: I want a color that is red 81, blue 81, green 123. The pseudocode for the Expression would be:
= ColorType(81, 81, 123)

Is there a way to do this in Reporting Services? Thanks in advance.

Justin

In case anyone is reading this and wants to know the answer, I found out from someone on another forum. This is handled by creating an Expression like this:
=#AABBCC
where AA = the hex value of the red (00-FF)
BB = the hex value of the green (00-FF)
CC = the hex value of the blue

So, if you wanted your color of the text, background, or whatever to be (184, 184, 208), you would use the following expression:
=#B8B8D0

Justin

No comments:

Post a Comment