Hi,

Subject: Desktop object Not Found Exception, Not able to run the Open Office
API

I have briefly read the chapter about text documents in the developer's
guide but not able to run the Open Office API.

Whenever I try to run the code below its gives Desktop object Not Found
Exception:

// You need the desktop to create a document
// The getDesktop method does the UNO bootstrapping, gets the
// remote servie manager and the desktop object.
com.sun.star.frame.XDesktop xDesktop = null;
 xDesktop = getDesktop();


It seems to me that it requires some sort of Open office running somewhere,
which I don't want.
My requirement is that I should simply give it a path of the microsoft word
document, and it should parse it.  Additionally I want the format of the
document to be parsed a well along with the text. So for example if a text
is boldor there is a table, then bold feature and the tables should also be
parsed.

Any help would be appreciated.

Regards,
Ambi.

Reply via email to