ambi ambi wrote:
>
> 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.
>
>
I've never done that but I've seen threads on the forum. Try searching the
Macros & API and the Code Snippets sub-forums of www.oooforum.org There's a
Help sticky on the first with links that may lead you to something useful.
Search terms could include command line and headless. You could also search
the archives of the dev at api list:
http://api.openoffice.org/servlets/SummarizeList?listName=dev
There is also http://codesnippets.services.openoffice.org/
--
View this message in context:
http://www.nabble.com/Desktop-object-Not-Found-Exception%2C-Not-able-to-run-the-Open-Office-API-tf3195538.html#a8877028
Sent from the openoffice - users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]