Comments (1)
经过测试没有问题,问题在于你修改不应该使用reader,而应该使用writer,而且你应该升级Hutool到最新版本。
final ExcelReader reader = ExcelUtil.getReader("d:/test/aaa.xlsx");
final ExcelWriter writer = reader.getWriter();
writer.getOrCreateRow(0).createCell(3).setCellValue("原因");
writer.flush();
writer.close();
当然你可以更加简洁的使用,简化后为:
ExcelUtil.getReader("d:/test/aaa.xlsx")
.getWriter().writeCellValue(3, 0, "原因")
.close();
from hutool.
Related Issues (20)
- JsonUtil.toBean()泛型问题 HOT 6
- DateUtil.offset空指针NullPointerException HOT 1
- CacheUtil缓存,即便key已存在,在数据已满时插入仍旧会删除数据 HOT 3
- Json中的数组字段在特殊情况下到字符串会为空 HOT 2
- ZipUtil 新增方法建议 HOT 1
- RuntimeUtil.execForStr 执行pnpm命令报错 HOT 1
- 5.8.24 ClassNotFoundException: Unable to resolve class: cn.hutool.core.bean.BeanUtil HOT 5
- BeanUtil.mapToBean 无法反序列化JsonNode类型的数据 HOT 1
- 对于HttpRequst,在请求header的contentType=multipart/form-data的情况下,怎么设置单项值contentType=application/json? HOT 9
- 什么时候废弃com.jcraft.jsch,转而支持com.github.mwiede.jsch HOT 4
- 请教下JschUtil里的exec 和 execByShell的区别是什么,能否在文档注释里描述清楚些? HOT 3
- 是否可以增加对HL7V3的支持? HOT 1
- sm2算法的优化以及新规定的迭代 HOT 14
- JSONUtil.toJsonStr 如何忽略别名@Alias() HOT 1
- getFileNameFromDisposition在5.8.28存在bug HOT 1
- JSONUtil 能用Jackson的注解吗?要如何才能兼容 HOT 1
- 能否提供一个类似于StringUtils.defaultString的方法 HOT 2
- 简易服务器搭建无效 HOT 9
- add support for currency HOT 1
- [Feature] Week添加ofChinese HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hutool.