简体   繁体   English

如何从Java Uno应用程序关闭OpenOffice?

[英]How to shutdown OpenOffice from my Java Uno application?

I have Java Uno application which runs on server and performs automated text extraction from documents. 我有Java Uno应用程序,该应用程序在服务器上运行,并从文档中执行自动文本提取。 I want to shutdown OpenOffice from my application before exiting. 我想在退出前从应用程序中关闭OpenOffice。 How can I do this? 我怎样才能做到这一点?

Thanks in advance! 提前致谢!

I'm using XDesktop.terminate() 我正在使用XDesktop.terminate()

http://api.openoffice.org/docs/common/ref/com/sun/star/frame/XDesktop.html http://api.openoffice.org/docs/common/ref/com/sun/star/frame/XDesktop.html

But this will only work (as far as I know) if you started OpenOffice locally. 但这仅在本地启动OpenOffice时才有效(据我所知)。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将OpenOffice.org作为后台进程运行,以便将我的应用程序连接到使用UNO Java API? - How do I run OpenOffice.org as a background process for connecting my application to using the UNO Java API? 将 Java UNO 代码从 OpenOffice 2.4 迁移到 3.0 - Migrating Java UNO code from OpenOffice 2.4 to 3.0 Java OpenOffice UNO API:如何扩展电子表格文档? - Java OpenOffice UNO API: How to scale spreadsheet document? 如何知道OpenOffice Calc UNO对象支持的Java接口(通过queryInterface) - How to know the Java interfaces an OpenOffice Calc UNO object supports (through queryInterface) 如何让我的 Java 应用程序在 windows 中正常关闭? - How do I get my Java application to shutdown nicely in windows? 使用Openoffice Java API(UNO API)将整个ODT(Openoffice Writer)文档部分复制到其他文档 - Copy a whole ODT (Openoffice Writer) document section to other document with Openoffice Java API (UNO API) 如何使用 UNO 遍历 OpenOffice/LibreOffice 中的整个文档 - How do I iterate over an entire document in OpenOffice/LibreOffice with UNO 如何从Java关闭Akka - How to shutdown akka from java 使用Java将UNO添加到OpenOffice文本文档中的按钮,文本字段,复选框等 - Adding buttons, textfields, checkboxes etc. to an OpenOffice textdocument usind UNO with Java 如何使用关机钩子决定是否退出应用程序中的消息? - How do i decide if to quit or not with a message from my application using shutdown hook?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM