I just installed LO 64-bit on Windows 7.
I have an ODS file with a macro. I set Tools|Options|LibreOffice Security from High to Medium (allows unsigned macros). I also checked the box to enable macros when opening the spreadsheet. The macro does not not work and also the LibreOffice helloworld.js macro does not work.
The first gives the dialog:
A scripting Framework error occurred while running the JavaScript script DOSTLSummary.js.
Message: “com” is not defined.
(This is from the importClass(Packages.com.sun.star.uno.UnoRuntime); line at the tip of the macro.)
The second gives the dialog:
A scripting Framework error occurred while running the JavaScript script helloworld.js
Message: Cannot read property “getText” from null
This happened before installing a JRE via Tools|Options|Advanced. I have since installed a JRE it likes (apparently must be 64-bit). I still cannot run the above macros.
These macros work in OpenOffice. The UI for Tools|Macros seems similar to OO, down to the Rhino JavaScript debugger.
Is there something else I have to do or doesn’t JavaScript work in LO. Or maybe I should install the 32-bit version of LO?