-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
用easyexcel导出excel 再 #1282
Comments
这个问题是导出excel时使用了SXSSFWorkbook的原因,如果使用XSSFWorkbook就不会出错,参考SXSSFWorkbook的实现原理,通过这种流的方式生成excel的时候没有对xml中的dimension标签进行操作,所以导出之后再通过xml文件获取行数的时候就会出错,后续是不是可以考虑在导出excel后再增加一个修改dimension标签的操作,或者建议用户获取行数的时候自己数? |
通过上述方案规避了此问题,不过需要通过反射获取XSSFSheet设置才行,代码如下: |
后续版本会解决 |
已经在 |
建议先去看文档
快速开始 、常见问题
触发场景描述
用easyexcel导出excel 再用easyexcel读取之前导出的excel
不管excel有几行
Integer totalRowNumber = readSheetHolder.getApproximateTotalRowNumber();
这条数据永远是1
The text was updated successfully, but these errors were encountered: