
Any ODF file, really is a ZIP file, you can extract this file like extract normally this type files. If folders do not exist, you should create them while respecting the capitalization. In custom installations they can be different. usr/lib/libreoffice/share/Scripts/python/ Profile USER folder, macros available only for USER GNU/Linux /home/USER/.config/libreoffice/4/user/Scripts/python Windows %APPDATA%\LibreOffice\4\user\Scripts\python macOS ~/Library/Application Support/LibreOffice/4/user/Scripts/python/ Directory of LibreOffice, macros available for all users There are 3 places where you can put your code. There is no built-in way to edit Python scripts so you have to use your own text editor. If you see this result, your system can run Python macros. In the Library section select LibreOffice Macros ▸ HelloWorld, in the Macro Name section select HelloWorldPython, and click button Run. Select menu Tools ▸ Macros ▸ Run macro., the "Macro Selector" dialog appears. Sudo apt install libreoffice-script-provider-python On Ubuntu, the package is called libreoffice-script-provider-python and contains files such as scriptproviderforpython.rdb (XML metadata) and pythonscript.py (Python infrastructure). On some operating systems, such as Ubuntu 18.04 LTS, you may need to install an additional OS package. PyUNO is the component that gives users access to the application programming interface (API hereinafter by its acronym Application Programming Interface) of LibreOffice with Python. It is far, far behind MS Access.LibreOffice allows the users to write macros in several interpreted languages, one of which is Python. Base itself is not a database development sute within this office suite. The Base component is a tiny addition to this office suite. More tutorials and examples on this forum: viewforum.php?f=83 Before you even think of any macros, you should become very familiar with the application itself.Ĭomplex database (embedded HSQL) with no macro: viewtopic.php?f=100&t=70259 Most request for macros on this forum are pointless.
You can not really do anything without certain extensions.
This branch of the API is the most complicated of the whole office suite and the API of this office suite is a nightmare.