Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


On 16/09/2013 18:29, greyspammer wrote:
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?
for printing to PDF i assume there must be a "opened" document (who can been hidden) as soon the document is open it becomes "ThisComponent" who has its "CurrentController"

Hope it helps

Fernand


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: 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

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.