Document Conversion using Sockets

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
rompetoto
Posts: 1
Joined: Thu Jul 07, 2011 12:07 am

Document Conversion using Sockets

Post by rompetoto »

Ok...so what a headache the OO SDK is...

Basically I am trying to convert documents using the headless version of OpenOffice.org 3 and TCP sockets.

The python code from here http://www.artofsolving.com/opensource/pyodconverter works amazing! If only I could convert this to C#...

The problem I am facing seems to be happen when I am bootstrapping the Local Context.
The uno.util.Bootstrap.bootstrap() function is NOT what I want at all, becuase this just creates another soffice.exe process.

I want to use an already created soffice process to do the conversion work.

I have tried this code to bootstrap the system, but it always returns null.

Code: Select all

XComponentContext xLocalContext = uno.util.Bootstrap.defaultBootstrap_InitialComponentContext();
Does anyone have any suggestions, if you have any questions about what I am trying to accomplish, please just ask.

Thanks, Richard
OpenOffice 3.2 on Windows Vista
hanya
Volunteer
Posts: 885
Joined: Fri Nov 23, 2007 9:27 am
Location: Japan

Re: Document Conversion using Sockets

Post by hanya »

Please, edit this thread's initial post and add "[Solved]" to the subject line if your problem has been solved.
Apache OpenOffice 4-dev on Xubuntu 14.04
Post Reply