Without running OpenOffice instance, use AOO API in JAVA

Java, C++, C#, Delphi, ??? - Using the UNO bridges

Without running OpenOffice instance, use AOO API in JAVA

Postby sharsha » Tue Jan 09, 2018 7:52 am

I am using open office 4 in my java application using bootstrapconnector.jar. But BootstrapSocketConnector.bootstrap(oooExeFolder), compusorily start a open office running instance in background.
Can we use open office api without running open office instance in background.
OpenOffice 3.1 on Windows Vista / NeoOffice
sharsha
 
Posts: 2
Joined: Mon Jan 08, 2018 12:48 pm

Re: Without running OpenOffice instance, use AOO API in JAVA

Postby Zizi64 » Tue Jan 09, 2018 9:51 am

Can we use open office api without running open office instance in background.

The functions of the AOO/LO API are for controlling the office applications, and/or the documents. What you want to achieve by the API functions without one of the applications, or without any document?
Tibor Kovacs, Hungary; LO4.4.7, LO6.1.1 on Win7x64Prof.
PortableApps, winPenPack: LO3.3.0-LO6.1.2 and AOO4.1.5
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 7287
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Without running OpenOffice instance, use AOO API in JAVA

Postby sharsha » Tue Jan 09, 2018 11:19 am

please check out this link : https://dzone.com/articles/integrate-openoffice-java it says if we use ODF Toolkit api, we will need not to install open office for creating open office documents like PDFs ..But for this we need to explore ODF Toolkit api. I just wished if OpenOffice.org API/Open office UNO api can provide the same facility of exporting PDFs without instantiating open office then it will be great.As I have already explored open office UNO api.
OpenOffice 3.1 on Windows Vista / NeoOffice
sharsha
 
Posts: 2
Joined: Mon Jan 08, 2018 12:48 pm

Re: Without running OpenOffice instance, use AOO API in JAVA

Postby grinder22 » Tue Feb 06, 2018 8:45 pm

I am using CLI (.Net) rather than java. But most of the functionality seems to be the same.

I am using a call like this - XComponentContext xContext = uno.util.Bootstrap.bootstrap();

Provided the JAVA interface has the same thing, as long as Open Office and the SDK are installed, this should kick off an soffice process for you, rather than needing to start one yourself. I implement a disposable extension that kills the process after I'm done with it.

For what it's worth, I'm starting to lean toward leaving a background soffice service running instead. I think it will be more stable in the long run.
OpenOffice SDK 4.1.2
OpenOffice CLI
Window 10
grinder22
 
Posts: 5
Joined: Thu Feb 01, 2018 6:12 pm


Return to External Programs

Who is online

Users browsing this forum: No registered users and 1 guest