Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

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?

Nicholas
 
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

cron