Hi Fabian,

do not use the "-swriter" option and create your own writer document
with loadComponentFromURL and the factory URL for new empty writer
documents "private:factory/swriter".

in basci you would do

oDoc = StarDesktop.loadComponentFromURL("private:factory/swriter", "_blank", 0, Array())

I bet there is a way to enumerate open documents in the framework but
at least the above method should solve your problem.

Regards,
Christian


Fabian Köster wrote:
Hi list,

I am searching for a way to start openoffice.org in background (like with soffice -invisible), connect to it by an java-app with uno, open some documents, perform actions on this documents and then show them.

My problem is that although I start with the "-swriter"-option xDesktop.getCurrentComponent() and xDesktop.getCurrentFrame() return null and therefore I am not able to do anything (At least I do not know how..).

Can anybody help me?

Fabian Köster


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to