Hi Kermit, 2009/6/19 qkm qkm <[email protected]> > > > 1. Now I need the local invocation in local call. Then I use JODConvert > > > to be invoked by myApplication and translate the invocation into TCP to > > > OpenOffice. Could any approach I can invoke OpenOffice directly? > > > > Not sure what you mean? Maybe that your app is not written in Java, > > and you'd like a library that you can invoke directly in your app's > > language? In that case, it would help if you tell us which language > > you're using. > > [Kermit] Now I use Java to invoke JODConverter to make a TCP connection > > with OpenOffice. Could you invoke OpenOffice directly by Java,does it > > OpenOffice UNO can be invoked by Java locally? > >
Still not sure what you mean by invoking it "locally"? OOo is written mainly in C++, you can't invoke it directly from Java. To invoke native libraries from Java you'd need to write JNI wrappers, but there are no conversion functions exposed by OOo as simple library calls anyway. The way it works is that you start OOo in listening mode, and then you connect to OOo from your Java app using either a TCP socket or a named pipe for inter-process communication. Read the OOo's guide for more info: http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Starting_OpenOffice.org_in_Listening_Mode http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Opening_a_Connection JODConverter simplifies all of this by providing a simpler and more intuitive API. Kind regards Mirko --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
