Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Can I embed python script and integrate with basic?

There is a very useful python script by @karolus and @EasyTrieve to detect the current os: https://ask.libreoffice.org/en/question/51460/best-macro-to-detect-the-operating-system/?sort=latest

To make it portable it can be embedded in the document. This is beautifully explained by Christopher Bourez here: http://christopher5106.github.io/office/2015/12/06/openoffice-libreoffice-automate-your-office-tasks-with-python-macros.html

Now the question: how can I call the embedded python script from basic?

click to hide/show revision 2
None

Can I embed python script and integrate with basic?

There is a very useful python script by @karolus and @EasyTrieve @librebel to detect the current os: https://ask.libreoffice.org/en/question/51460/best-macro-to-detect-the-operating-system/?sort=latest

To make it portable it can be embedded in the document. This is beautifully explained by Christopher Bourez here: http://christopher5106.github.io/office/2015/12/06/openoffice-libreoffice-automate-your-office-tasks-with-python-macros.html

Now the question: how can I call the embedded python script from basic?

Can I embed python script and integrate with basic?

There is a very useful python script by @librebel to detect the current os: https://ask.libreoffice.org/en/question/51460/best-macro-to-detect-the-operating-system/?sort=latest

To make it portable it can be embedded in the document. This is beautifully explained by Christopher Bourez here: http://christopher5106.github.io/office/2015/12/06/openoffice-libreoffice-automate-your-office-tasks-with-python-macros.html

Now the question: how can I call the embedded python script from basic?