如何使用 Jakarta POI 从 ms word 文件中读取内容 [英] How to read content from ms word files using Jakarta POI
问题描述
我已经包含了 jakarta-poi-1.5.1-final-20020615.jar 文件来读取 ms word 中的内容.
I've included jakarta-poi-1.5.1-final-20020615.jar file to read content from ms word.
我无法做到这一点......有人可以帮助我吗?
I am unable to do this ...can anyone help me?
推荐答案
您需要迁移到较新版本的 POI - 您使用的 POI 大约有 9 岁了!获取最新版本的 POI(现在只是 Apache POI,几年来一直不是 Apache Jakarta POI),在撰写本文时,您需要 3.7 Final 或 3.8 beta 2.
You need to move to a newer version of POI - the one you're on is about 9 years old! Grab the latest version of POI (it's just Apache POI now, hasn't been Apache Jakarta POI for a few years now), you'll want either 3.7 Final or 3.8 beta 2 as of writing.
然后,通读一下HWPF 文档,然后就可以开始了.
Then, have a read through the HWPF docs and you should be good to go.
这篇关于如何使用 Jakarta POI 从 ms word 文件中读取内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!