Spire.XLS for .NET is a professional Excel .NET library that can be used to any type of .NET( C#, VB.NET, ASP.NET, .NET Core) application, both ASP.NET web sites and Windows Forms application.

Thu Dec 30, 2010 4:06 am

I am using cell.getStyle().getColor() for getting cell background color for XLSX files but the background is black. How should I do to get color I want?

Posts: 9
Joined: Tue Dec 28, 2010 1:16 am

Fri Dec 31, 2010 9:22 am

Please try:
Color color = sheet.Range["A1"].Style.PatternColor;
e-iceblue support
User avatar

iceblue support
Posts: 240
Joined: Tue Dec 21, 2010 2:56 am

Return to Spire.XLS