创建和编辑Word文档 [英] Create and Edit Word document

查看:73
本文介绍了创建和编辑Word文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在尝试使用Java创建Word文档.大多数论坛都参考docx4j.jar(apache poi).但是在该库文件中没有某些功能或方法,如WordprocessingMLPackage(),getMainDocumentPart().任何人都可以通过电话联系使用Java创建Word文档的方式.

任何答案都将不胜感激..

在此先感谢

kumar

Hi,
I am trying to create Word document using java. most of the forums refers docx4j.jar (apache poi). But in that library file does''t having some functions or methods like WordprocessingMLPackage(),getMainDocumentPart(). Anyone can tel the way to create word document using Java.

Any answer could be appreciated..

thanks in advance

kumar

推荐答案

据我所知,对Word文档的操作已包含在OpenOffice UNO(通用网络对象)中,可以使用Java绑定. (毕竟,OpenOffice应用程序可以使用所有版本的Microsoft Word文档,并且该产品是开源的.)

As far as I know, manipulations with Word documents are included as a part of OpenOffice UNO (Universal Network Object), Java binding is available. (After all, the OpenOffice application can work with all version of Microsoft Word documents, and the product is Open Source.)

请参阅:
http://en.wikipedia.org/wiki/OpenOffice.org [ http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/OpenOffice.org_Developers_Guide [ ^ ].

See:
http://en.wikipedia.org/wiki/OpenOffice.org[^],
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/OpenOffice.org_Developers_Guide[^].

有很多商业产品,您可以在Google上找到它们.

There is a number of commercial products, you can Google to find them.


检查
http://code.google.com/p/java2word/ [
Check
http://code.google.com/p/java2word/[^]


这篇关于创建和编辑Word文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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