在使用NPOI读取Excel表格内容时,如果单元格为空白,则会出现异常,
解决方法,添加一个判断即可解决问题
for (int i = 1; i <= rowCount; i++)
{
IRow row = sheet.GetRow(i);
string prop = string.Empty;
if (row.GetCell(0) != null)
prop = row.GetCell(0).ToString();
}