Hello Robert,
Hello
I am using OOo for converting MS Word files to PDF in Java.
My code is basically taken from the Code Snippet base.
http://codesnippets.services.openoffice.org/Office/Office.ConvertDocumen
ts.snip
However after a conversion the soffice.bin and soffice.exe processes do
not terminate under windows and so my
program cannot exit cleanly.
Is there any method to close these processes in Java?
OOo does not terminate implicit if you open/close documents ...
because the office does not know when you will finish your work.
So you have to terminate the office explicitly.
You can query the singleton "com.sun.star.frame.Desktop" for it's
com.sun.star.frame.XDesktop interface and call "XDesktop.terminate()"
there. It will return a boolean value indicating the acceptance state
of such terminate request.
Please note: e.g. an enabled quickstarte can hinder the office further
on shutdown so this method might be return false then.
You have to disable the quickstarter for your installation then.
Thanks for any help
Rrobert
Regards
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]