Apache POI HWPF - 将表格输出到 Microsoft Word
我已经谷歌搜索了很长一段时间,但没有找到明确的答案。 是否可以使用 Apache POI 输出表格? 看起来它还没有实现,因为主要开发人员大约 5 年前就停止了开发。
有没有 POI 的开源替代品可以做到这一点?
I've been Googling for quite awhile and haven't found a definitive answer. Is it possible to output a table using Apache POI? It looks like it hasn't been implemented, since the main developer stopped working on it like 5 years ago.
Is there an open source alternative to POI that can do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为你是对的,Apache POI 已经死在水中了。 显然,它还不够迷人。
我知道的唯一替代方案是 iText,它可以生成 RTF MS Word(以及所有其他类似应用程序)可以读取的文档。 它包括完整的表支持。
当然,iText 也可以生成 PDF。
I think you're right in that Apache POI is dead in the water. Clearly it wasn't glamourous enough.
The only alternative that I'm aware of is iText, which can generate RTF documents, which MS Word (and every other similar application) can read. It includes full table support.
And, of course, iText can generate PDF also.
如果 docx 和 java 都适合您,请尝试 docx4j
If docx and java are both ok for you, try docx4j