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. (Last updated on: November 16, 2018).
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 12:15 PM UTC Jun 24,2008 09:03 AM UTC WinForms 1
Tags: XlsIO
Administrator [Syncfusion]
Asked On June 23, 2008 12:15 PM UTC


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 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.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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