We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:





74622 Jun 23,2008 08:15 AM Jun 24,2008 05:03 AM Windows Forms 1
Tags: XlsIO
Administrator [Syncfusion]
Asked On June 23, 2008 08:15 AM


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?

Yavanaarasi G [Syncfusion]
Replied On June 24, 2008 05:03 AM

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.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon