Cannot use Color.FromARGB() to set cells Back-Color......

Hello,

I`m trying to get a very light gray background for my excel-cells, so first try was to use:

sheet[x,y].CellStyle.Color = Color.LightGray;

This works, but the color was to dark, so I tryied

sheet[x,y].CellStyle.Color = Color.FromARGB(235,235,235);

But this returns white(none colored at all) cells, is this a known problem or did I something wrong?


1 Reply

YG Yavanaarasi G Syncfusion Team June 24, 2008 09:03 AM UTC

Hi Samy,

Thank you for your interest in Syncfusion products.

XlsIO supports only standard colors and other colors are converted to indexed closest colors using an algorithm when resaving/getting colors in workbook. RGB colors are currently not support. We have already logged a feature request for this issue. This feature will be implemented in 6 months time frame.

Please let me know if you have any other concerns.

Regards,
G.Yavana



Loader.
Up arrow icon