OpenOffice自动化delphi
我们想要自动化 OpenOffice,当我在互联网上搜索时找不到端到端的帮助,而 delphi 的例子太少了。我们的目的是插入文档变量并用其中的值替换文档变量并复制段落等。
任何人都可以帮助我找到端到端帮助或像 word2000.pas 这样的 pas 文件,我可以在其中找到所有单词例程。
谢谢, 罗勒
We want to automate OpenOffice, When i search on internet couldnot find a end-to-end help for that and delphi examples are too less. Our intention is to insert document variables and replace the document variable with there values and copying paragraphs etc.
Can any one help me to find an end-to-end help or a pas file like word2000.pas where i can find all the word routines.
Thanks,
Basil
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我确实经常将 OpenOffice-Automation 与 Delphi 一起使用,并且我认为 Delphi 没有具有更高功能的“包装器”。
SourceForge 上有一个 Delphi OO 项目,其中包含帮助程序和示例作为起点: http://sourceforge.net/projects/ooomacros/files/Delphi%20OOo/Version%201.2/Delphi_OOo_v12en.zip/download
然后你就得研究UNO-API并使用COM来调用 UNO 函数。
I do use OpenOffice-Automation with Delphi a lot and I think there is no "wrapper" with higher functionality for Delphi.
There is a Delphi OO Project on SourceForge with helpers and examples as a starting point: http://sourceforge.net/projects/ooomacros/files/Delphi%20OOo/Version%201.2/Delphi_OOo_v12en.zip/download
Then you have to study the UNO-API and use COM to call the UNO functions.
您可以在这里找到很多更新的信息:
https://www.freepascal.org/~michael/articles/openoffice1/ openoffice.pdf
You can find a lot of updated information here:
https://www.freepascal.org/~michael/articles/openoffice1/openoffice.pdf