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 ·
1840 阅读 ·
0 评论