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