学习 Apache POI [英] Learning Apache POI
问题描述
我正在处理一个需要使用 Java 操作 MS Word 文档的项目.我发现 Apache POI
是最好的 API.但是我无法从 这个链接 正确理解 POI 的使用.另外,我无法从 此处.任何人都可以帮助我使用 POI 或一些示例代码.谢谢.
I am working on a project which requires manipulation of MS word document using Java. I have found that Apache POI
is the best API to do that.
But I could not properly understand the use of POI from this link . Also, I was not able to SVN check-out the source from here.
Can anyone please help me with using POI or some sample code.
Thanks.
我可以编辑现有的 Word 模板文档并将占位符替换为我想要使用 POI 的文本吗?
Can I edit an existing Word template document and replace the place holders with the text I want using POI?
推荐答案
1) 您可以下载 POI 作为 .zip 或 .tar.gz 文件(WinZip 应该理解这两种格式)此处.
1) You can download POI as a .zip or .tar.gz file (WinZip should understand both formats) here.
2) 快速指南位于这里.
3) 本快速指南 指向单元测试,这可以生成出色的示例代码.
3) This Quick Guide points to the unit tests, which make for excellent sample code.
4) 这是另一个很好的 howto(适用于 Excel,但适用于 Word).
4) Here's another good howto (it's for Excel, but applicable to Word).
这篇关于学习 Apache POI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!