Hi,
the following snippet has worked in OpenOffice 2 (and IIRC in an early
OpenOffice 3 320m).
(mba in
http://api.openoffice.org/servlets/ReadMsg?listName=dev&msgNo=19765 )
A new hidden window of the xTextDocument has been loaded:
XModel xModel = (XModel) xTextDocument;
XComponentLoader xComponentLoader = (XComponentLoader)
UnoRuntime.queryInterface(XComponentLoader.class,xDesktop);
PropertyValue[] props = new PropertyValue[2];
props[0] = new PropertyValue();
props[0].Name = "Model";
props[0].Value = xModel;
props[1] = new PropertyValue();
props[1].Name = "Hidden";
props[1].Value = true;
xComponentLoader.loadComponentFromURL("private:factory/swriter",
"_blank", 0, props);
In OpenOffice 3.2 this crashes the office.
I get a com.sun.star.lang.DisposedException: TransactionManager...
Owner instance already closed. Call was rejected!
Any hints for this?
It prevents us (6,500 users) from updating to version 3 ...
Regards
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org