Hello! I have a macro which I want to be executed whenever a Writer document is being converted to a PDF. So I wrote my macro and assigned it to the appropriate event. And it works. At least, from within a running GUI-Session.
If I try to do the conversion via command line, I get this error message: <----- snip -----> BASIC runtime error. Property or method not found: CurrentController <----- snap -----> The command I use to invoke LibreOffice is: <----- snip -----> lowriter --convert-to pdf:writer_pdf_Export test.odt <----- snap -----> It is later planned to have it run in headless mode on a machine with no X server, but I removed those options to get an error message. I assume that in this mode, there is no "CurrentController" (because there is no Writer window?) and hence, the error. But what can I do about it? Create one myself? How? System is Kubuntu 13.04 with LibreOffice 4.0.2. -- View this message in context: http://nabble.documentfoundation.org/Macro-from-command-line-ThisComponent-CurrentController-not-found-tp4074374.html Sent from the Users mailing list archive at Nabble.com. -- To unsubscribe e-mail to: [email protected] 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
