Java用POI事件模型编写Excel文件 [英] Java write Excel files with POI event model

查看:30
本文介绍了Java用POI事件模型编写Excel文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用来自 POI 的事件驱动 API 创建和写入(新)excel 文件?我找到了有关如何使用该 API 读取的示例,但没有找到有关如何编写的示例.

Is it possible to create and write to a (new) excel file using the event driven API from POI? I've found examples on how to read with that API, but not how to write.

谢谢,杰夫

推荐答案

这里有一种可能,不过写得不是很好:

Here is one possibility, not very well written, though:

http://www.docjar.org/html/api/org/apache/poi/xssf/usermodel/examples/BigGridDemo.java.html

我正在使用它的修改版本,它不需要临时文件并且整体效率更高

I'm using a modified version of that, which does not require temporary files and is overall more efficient

这篇关于Java用POI事件模型编写Excel文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆