How to run libreoffice in inline mode

asked 2019-10-08 17:39:39 +0100

ArcadianSky gravatar image

updated 2019-10-08 20:41:55 +0100

I'm trying to write app for LibreOffice made using SDK. I write loadComponentFromURL with loadProps

        sAbsoluteDocUrl, OUString("_default"),
        0, loadProps);

with options

    Sequence<PropertyValue> loadProps(3);
    loadProps[0].Name = OUString::createFromAscii("Hidden");
    loadProps[0].Value = Any(true);
    loadProps[1].Name = OUString::createFromAscii("UpdateDocMode");

    loadProps[1].Value = Any(sal_Int16(com::sun::star::document::UpdateDocMode::FULL_UPDATE));
    loadProps[2].Name = OUString::createFromAscii("Silent");
    loadProps[2].Value = Any(true);

(it works frame not opens) and then use

        OUString::createFromAscii(""), 0, args);

        OUString::createFromAscii(""), 0, args);

but the document doesn't updates/save.

how to run and save (.docx) libreoffice app in inline mode without any interface?( the program would work without desktop)

if i run with .odt file - all is ok

edit retag flag offensive close merge delete