Hi,> Desktop_obj = component_factory.createInstanceWithContext("com.sun.star.frame.Desktop", context); > XDesktop desktop = UnoRuntime.queryInterface(XDesktop.class, desktop_obj);
> desktop.terminate(); >> Any way that I can close the instance without killing off other soffice instances?
>
What about combining both methods? if (doc is the last one){ use desktop.terminate }else{ use closeable.close } Best Regards, Marcin