While working on a custom report for a client, I needed to set the background color to grey. Unfortunately, when I was done and ran the report, an error message was generated. Below is the relevant part of the error message:
Warning [rsInvalidColor] The value of the Color property for the chart ‘Chart1’ is “Grey”, which is not a valid Color. |
Even though Microsoft spells this color both the US (Gray) and UK (Grey) way, I determined that in order to avoid these types of error messages I’m always going to use the RGB Value and I recommend that you do the same!
Finally, I got my grey/gray background!
If you have any questions about this blog post, please leave a note in the comment section below. Or, you can contact me on Twitter @GarthMJ.
