Can't Import XLS MACRO in LibreOffice ODS - using API [closed]

asked 2014-06-24 09:15:18 +0100

Sugam Varshney gravatar image

I have been using the following code to read the Macro Libraries in OpenOffice and trying some thing to work with LibreOffice as well,

XLibraryContainer libraryContainer = (XLibraryContainer)UnoRuntime.queryInterface(XLibraryContainer.class, propertySet.getPropertyValue("BasicLibraries")); XNameAccess nameAccess = (XNameAccess)UnoRuntime.queryInterface(XNameAccess.class, libraryContainer); libraryContainer.loadLibrary("Standard");

Here librarycontainer is not loading the "Standard", though it was fins with OO. Is there something different here? libraryContainer is not null but the libraryContainer.getElementNames().length is O. But the length was 1 when I was using the OpenOffice.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2016-02-26 09:58:56.752571