jeecgboot / autopoi

AutoPOI 功能如同名字auto,追求的就是自动化,让一个没接触过poi的人员,可以傻瓜化的快速实现Excel导入导出、Word模板导出、可以仅仅5行代码就可以完成Excel的导入导出。
http://www.jeecg.com
Apache License 2.0
477 stars 204 forks source link

1.修复getCell读取空行越界 2.获取图片增加类型判断 #126

Open lly-ke opened 2 months ago

lly-ke commented 2 months ago

增加判断防止空行firstCellNum取值为-1, 导致抛出 row.getCell(i) 异常

https://github.com/jeecgboot/autopoi/issues/116 https://github.com/jeecgboot/autopoi/issues/63

获取图片增加类型判断 https://github.com/jeecgboot/autopoi/issues/107 https://github.com/jeecgboot/autopoi/issues/83 https://github.com/jeecgboot/autopoi/issues/73

annihilationism commented 1 month ago

这个问题的修复在哪个版本,我看了1.4.10都还没有更新

customysc commented 4 weeks ago

1.4.11还没有解决这个问题,希望官方能尽快解决 我也遇到了类似的问题,报错分别是 1、索引越界 Cell index must be >= 0 2、类型转换失败 class org.apache.poi.xssf.usermodel.XSSFSimpleShape cannot be cast to class org.apache.poi.xssf.usermodel.XSSFPicture (org.apache.poi.xssf.usermodel.XSSFSimpleShape and org.apache.poi.xssf.usermodel.XSSFPicture are in unnamed module of loader 'app')