Edit: Split from [Solved] Save calc document like csv file by macro since that topic is for Basic, is marked solved, and the question is from a different person |
Save calc document as CSV with Python macro
Save calc document as CSV with Python macro
OpenOffice 2.4 on Ubuntu 9.04
Re: [Solved] Save calc document like csv file by macro
You simply write the same statements in your preferred langauge.strongleg wrote:that's great, but how to write it in python?
In Python:
Code: Select all
ThisComponent = XSCRIPTCONTEXT.getDocument()
StarDesktop = uno.getComponentContext().ServiceManager.createInstance('com.sun.star.frame.Desktop')
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: [Solved] Save calc document like csv file by macro
hallo
At least for Libreoffice:
At least for Libreoffice:
Code: Select all
BASIC <|> Python
StarDesktop == XSCRIPTCONTEXT.getDesktop()
Libreoffice 7.4 on Debian 12 (Bookworm) (on RaspberryPI4)
Libreoffice 7.6 flatpak on Debian 12 (Bookworm) (on RaspberryPI4)
Re: [Solved] Save calc document like csv file by macro
I did not know.karolus wrote:hallo
At least for Libreoffice:Code: Select all
BASIC <|> Python StarDesktop == XSCRIPTCONTEXT.getDesktop()
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: [Solved] Save calc document like csv file by macro
I also noticed this only one or two weeks agoVilleroy wrote:I did not know.karolus wrote:hallo
At least for Libreoffice:Code: Select all
BASIC <|> Python StarDesktop == XSCRIPTCONTEXT.getDesktop()
Libreoffice 7.4 on Debian 12 (Bookworm) (on RaspberryPI4)
Libreoffice 7.6 flatpak on Debian 12 (Bookworm) (on RaspberryPI4)