When is Grey Not a Valid Color?
By Garth Jones
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!