Hello out there,
Is it possible to run a Macro on a Document in headless mode?
$ libreoffice --version
LibreOffice 5.0.5.1 00m0(Build:1)
Currently I use:
$ libreoffice --invisible --nofirststartwizard --headless --norestore
"Unbenannt 1.ods" "macro:///Meine Makros &
Dialoge.Standard.Module2.Main"
Makro:
Sub Main
print "Hi, I'm macro."
print
ThisComponent.getSheets().getByIndex(0).getCellRangeByName("A1").getCel
lByPosition(0,0).CellBackColor
thisComponent.close(true)
stardesktop.terminate
End Sub
Thanks,
Christoph
--
Visit me:
https://joinout.de
https://criztovyl.joinout.de
https://github.com/criztovyl
--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted