Quantcast
Channel: NPOI
Viewing all articles
Browse latest Browse all 1621

Created Unassigned: NPOI cell font color bug? [13913]

$
0
0
0
down vote
favorite
I am trying to read the font colour of an Excel cell using NPOI 2.2.1 or 2.1.3.1 It doesn't matter what the font colour is NPOI is always saying that it is 8 (black). Code fragment below

IWorkbook workbook = WorkbookFactory.Create(new FileStream(txtFileName.Text, FileMode.Open, FileAccess.Read));
ISheet worksheet = workbook.GetSheet("sheet1");
IRow row = worksheet.GetRow(0);
lblFontColor.Text = row.GetCell(0).CellStyle.GetFont(workbook).Color.ToString();
Is this a bug or am I doing something wrong?

Cheers Stew

Viewing all articles
Browse latest Browse all 1621

Trending Articles



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