请问JAVA中如何操作word文档?现在好像只有JACOB可以。POI目前只能读。

wangbolong 2004-12-24 12:13:48
我现在需要在word文档中新增加一页并且加入一段信息请问具体怎么实现?谢谢
...全文
1373 41 打赏 收藏 转发到动态 举报
写回复
用AI写文章
41 条回复
切换为时间正序
请发表友善的回复…
发表回复
dongcenphoenix 2005-07-16
  • 打赏
  • 举报
回复
mark
深圳万兴 2005-07-15
  • 打赏
  • 举报
回复
最新1.9正在用
http://sourceforge.net/projects/jacob-project/
wangbolong 2005-06-16
  • 打赏
  • 举报
回复
最新的jacob是支持1.4的
cxz7531 2005-06-08
  • 打赏
  • 举报
回复
jacob好像只能适用jdk1.3, 1.4以上是不行的
hailong326 2005-01-23
  • 打赏
  • 举报
回复
mark
108041217 2005-01-19
  • 打赏
  • 举报
回复
HWPF is our port of the Microsoft Word 97 file format to pure Java. It supports read and write capability. Please see the HWPF project page for more information. This component is in the early stages of development. It can already read and write simple files.

Presently we are looking for a contributor to foster the HWPF development. Jump in!

wangbolong 2005-01-17
  • 打赏
  • 举报
回复
刚刚试过xiaopeipei2004(小裴) 的方法。读文本没有什么问题,还没有找到如何往"c:\\cc.doc"里添加的方法。
wangbolong 2005-01-17
  • 打赏
  • 举报
回复
不好意思,写错了,是to hellenlong(海龙) :jacob不用在客户端装word,但是不是可以在ie里修改我就不知道了,我做的是在服务器端修改。
wangbolong 2005-01-17
  • 打赏
  • 举报
回复
to GJA106(中文字符) :jacob不用在客户端装word,但是不是可以在ie里修改我就不知道了,我做的是在服务器端修改。
wangbolong 2005-01-17
  • 打赏
  • 举报
回复
iText试了一下,发现 GJA106(中文字符)的例子确实是可以运行的,但却擦除了文档以前的内容.具体的格式编辑还在研究中感谢GJA106(中文字符)!
先结贴吧,让大家久等了
ddroyce 2005-01-17
  • 打赏
  • 举报
回复
很好啊!:)
joyaga 2005-01-14
  • 打赏
  • 举报
回复
顶了 学习中!
GJA106 2005-01-14
  • 打赏
  • 举报
回复
实在不行。可以用iText来写word文档(功能也比较全:页头/尾、格式编辑、字体、超级链接、目录),用POI来读。
hellenlong 2005-01-14
  • 打赏
  • 举报
回复
to中文字符:
Object documents = doc.getProperty("Documents").toDispatch();我也报错
我下的1.7的 包,错误信息如下,我的是win2000,word2000
At Invoke of: Documents
Description: An unknown COM error has occured.

at com.jacob.com.Dispatch.invokev(Native Method)

at com.jacob.activeX.ActiveXComponent.getProperty(ActiveXComponent.java)

at untitled1.FileExtracter.testFindReplace(FileExtracter.java:21)

at untitled1.FileExtracter.main(FileExtracter.java:76)

hellenlong 2005-01-14
  • 打赏
  • 举报
回复
http://danadler.com/jacob/
下载地址共享
不徻写代码 2005-01-14
  • 打赏
  • 举报
回复
关注!!!
shan1119 2005-01-14
  • 打赏
  • 举报
回复
我也想知道
hellenlong 2005-01-14
  • 打赏
  • 举报
回复
用jacod客户端一定要装word的吗?
hellenlong 2005-01-14
  • 打赏
  • 举报
回复
顺便问一下
jacob哪儿有的下?
mqjshanghai 2005-01-14
  • 打赏
  • 举报
回复
接点分
可以的我
不知道楼主给我分吗
加载更多回复(21)

62,614

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧