I have the same code to generate XLS and XLSX and I use SS.UserModel interfaces.
Thank you for your help.
If Excel2007 Then
oWorkBook = New NPOI.XSSF.UserModel.XSSFWorkbook()
Else
oWorkBook = New NPOI.HSSF.UserModel.HSSFWorkbook()
End If
When I create ICellStyles with oWorkBook.CreateCellStyle(), if I change i.e FillForegroundColor property of iCellStyle A, also other iCellStyles change the same property... Dim csNormal As ICellStyle, csCOL As ICellStyle
csNormal = oWorkBook.CreateCellStyle()
csNormal.WrapText = False
csNormal.SetFont(fNormal)
csCOL = oWorkBook.CreateCellStyle()
csCOL.CloneStyleFrom(csNormal)
csCOL.FillForegroundColor = IndexedColors.Grey25Percent.Index
WHY (csNormal..FillForegroundColor == IndexedColors.Grey25Percent.Index) ALSO?Thank you for your help.