NUTZ按行操作EXCEL表,怎么玩
10 回复
while (rlist.hasNext()) {
Row row = rlist.next();
if (currRow >= passRow) {
Iterator<Cell> clist = row.cellIterator();
while (clist.hasNext()) {
Cell chead = clist.next();
String h = J4E.cellValue(chead, null);
sb.append("@J4EName(\"").append(h).append("\")").append("\n");
if (withTable) {
sb.append("@ColDefine()").append("\n");
}
我在网页上查了一下这个的源码,能后增加一个判断:if(row==null) continue;
我把我的EXCEL表去掉空行,导入成功,有空行则报失败
我如果想修改,怎么改?
添加回复
请先登陆