![]() |
#2
xydddaxia2014-01-28 16:00
|
使用NPOI读取Excel行的时候使用了for (int i = sheet.FirstRowNum + 1; i < sheet.LastRowNum; i++)
其中sheet.LastRowNum的值为65519了。导致后面取值的时候GetValueTypeForXLS(sheet.GetRow(i).GetCell(j) as HSSFCell)会出现NULL的错误。。