Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


Good Morning,

I have problem with use of java LibreOffice Api 4.3

Is a possible way to close XComponent (xlsx type) in save way?.

I have converting to pdf method. I use XStorable.storeToURL() The converting works fine, but when I try to close like this:

        if (xStorable != null) {
XCloseable closeable = UnoRuntime.queryInterface(XCloseable.class, xStorable);
            if (closeable != null) {
                try {
                    closeable.close(true);
                } catch (CloseVetoException closeVetoException) {
                    //problem with xlsx files, always occure
                }
            } else {
XComponent xComp = UnoRuntime.queryInterface(XComponent.class, xStorable);
                xComp.dispose();
            }
        }

I tried to dispose a XController and the XFrame. In that case window is closed, but in next time XComponentLoader cannot load the XComponent, problem with socket etc.

Can You tell me what i should do to make it work fine?. Maybe i should know more about something or You had some simillar problems?.

I hope You will find time to answer,
Have a nice day.



Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.