Qt 中的 MS Word/ODF 自动化

发布于 2024-09-08 15:40:24 字数 535 浏览 4 评论 0原文

如何在 Qt 4.5 中执行 MS Word 文档 (.doc) 或 ODF 文档 (.odt) 的自动化?我知道使用 QAxWidgetQAxObject

我有数据 (QString) 和一些图像。我必须将它们添加到文档中。我用谷歌搜索,但找不到任何 MS-Word/ODF 的命令。但我想要在 QAxObject::dynamicCall() 函数中传递的特定命令来执行我的操作。

例如,在MS Excel中,我们必须使用类似的东西,

excel.querySubObject("ActiveWorkBook");

它将返回Excel文档的活动工作簿的对象。

可用于生成 MS-Word 或 ODF (odt) 文档的命令有哪些?我使用的是Windows XP。欢迎任何链接、示例。

How can I perform automation of MS Word documents (.doc) or ODF documents (.odt) in Qt 4.5? I know using the QAxWidget, QAxObject.

I have data (QString) and few images as well. I have to add them into the document. I googled but I couldn't find any commands for MS- Word/ ODF. But I want the specific commands that should be passed in QAxObject::dynamicCall() function to perform my operations.

For e.g in MS Excel we have to use something like,

excel.querySubObject("ActiveWorkBook");

which will return the object of the Active workbook of the Excel document.

What are all the commands that are available for the generation of MS-Word or ODF (odt) documents? I am using Windows XP. Any links, examples are welcome..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

梦与时光遇 2024-09-15 15:40:24

看看http://doc.trolltech.com/qq/qq27-odfwriter。 html,Qt 提供了创建 OpenDocument 格式 (ODF) 文件的功能。

Take a look at http://doc.trolltech.com/qq/qq27-odfwriter.html, Qt provides functionality to create OpenDocument Format (ODF) files.

意中人 2024-09-15 15:40:24

与MS Word 相关的ActiveX 命令可以通过随MS - Word 一起安装的VBAWD10.chm 获取。

可以在此处获取可用的ActiveX 帮助文档的详细信息。

最困难的部分是以可以通过 ActiveQt 模块访问的方式来符合这些要求。

我为我的问题提供了类似的解决方案此处

希望它有帮助对于那些都在寻找类似解决方案的人..

The ActiveX commands related to the MS Word can be obtained by the VBAWD10.chm that is being installed along with MS - Word.

The details of the ActiveX help documents available can be obtained here.

The toughest part is to conform those in such a way that it can accessed through the ActiveQt Module.

I provided a similar solution to my question here

Hope it helps for those who are all looking similar solutions..

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文