- 博客(1)
- 收藏
- 关注
原创 NOPI 读取EXCEL数据时报错“未将对象引用设置到对象的实例”的变相解决方案
row = sheet1.GetRow(i);ICell cell1 = row.GetCell(1);ICell cell2 = row.GetCell(1);ICell cell6 = row.GetCell(6); if (cell1 == null && cell6 != null || cell1.ToString() == "" && cell6.ToString() != ""){}逻辑是这样滴,如果直接获取某些空白格的值row.GetCell(1
2020-10-29 18:08:08 1727
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人