Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Not really an answer - just a comment instead, so as to bump this question, and hopefully get an answer :) </p> <p>This possibly has to do with having to explicitly set permissions for macros, for instance: </p> <p><a href="http://user.services.openoffice.org/en/forum/viewtopic.php?f=20&amp;t=8232" rel="nofollow">Can't execute macro from command line (View topic) • OpenOffice.org Community Forum</a></p> <blockquote> <p>Edit: In fact it seems to be impossible to call document macros, which is perfect for security reasons. </p> </blockquote> <p>See also: </p> <ul> <li><a href="http://wiki.services.openoffice.org/wiki/Documentation/Administration_Guide/Using_Custom_Macros_and_Libraries" rel="nofollow">Custom OpenOffice.org Basic Macros and Libraries - OpenOffice.org Wiki</a></li> <li><a href="http://www.oooforum.org/forum/viewtopic.phtml?t=37562" rel="nofollow">OpenOffice.org Forum :: Enable OpenOffice Macro through Command Line</a>. </li> <li><a href="http://www.oooforum.org/forum/viewtopic.phtml?t=2619" rel="nofollow">OpenOffice.org Forum :: simple command line question</a></li> <li><a href="http://www.oooforum.org/forum/viewtopic.phtml?t=6808" rel="nofollow">OpenOffice.org Forum :: HowTo Run Macros from Document from Shell</a></li> </ul> <p>As a side note, the standard <code>Module1</code> file can be found in (on Linux): </p> <pre><code>~/.openoffice.org/3/user/basic/Standard/Module1.xba ~/.libreoffice/3/user/basic/Standard/Module1.xba </code></pre> <p>and note that the .xba is actually an XML file, that contains the Basic macro source, as in: </p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd"&gt; &lt;script:module xmlns:script="http://openoffice.org/2000/script" script:name="Module1" script:language="StarBasic"&gt;REM ***** BASIC ***** Sub Main End Sub&lt;/script:module&gt; </code></pre> <p>Unfortunately, just copying to the respective directories (below, in extensions) does not work, as in the following command line snippet.. </p> <pre><code>sudo mkdir /usr/lib/libreoffice/share/extensions/mytest sudo cp ~/.libreoffice/3/user/basic/Standard/Module1.xba /usr/lib/libreoffice/share/extensions/mytest/MyTestModule.xba sudo sed -i 's/Module1/MyTestModule/g' /usr/lib/libreoffice/share/extensions/mytest/MyTestModule.xba </code></pre> <p>So I guess the only way is to manually add/allow Macros in OpenOffice, and then possibly find where the respective .xba's are stored, and change their code there (if only a command line usage is desired)... </p> <p>Maybe using <a href="http://wiki.services.openoffice.org/wiki/Python" rel="nofollow">Python - OpenOffice.org Wiki</a> is more open approach to external scripts - but it requires that you start openoffice as a server... </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload