Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

Created Unassigned: Style.Font.FontColor incorrectly determined [9340]

$
0
0
Hi,

In attachment a small excel file: the font color for cells C6, C7, C8, C9 is __black__ (as can be verified by vba).

However ClosedXML returns the color __Silver__ for these cells.

Code snippet:
var wbSource = new XLWorkbook(@"d:\ColorBook.xlsx");
var ws = wbSource.Worksheet("Sheet1");
for (int row = 1; row < 10; row++)
{
Console.WriteLine("The result for cell C" + row + " is " + ws.Cell("C" + row).Style.Font.FontColor.Color.ToString());
}

I can't seem to find to code that causes the problem. Any suggestion for a work around is also appreciated.

Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>