Macro is not started when converting

71 views
Skip to first unread message

Zhivko

unread,
Dec 29, 2009, 10:23:55 AM12/29/09
to JODConverter
It seems that macro that is definet in tools->customize->events is not
executed.

I have defined macro for "Open Document" event that is normally
executed if I open same .odt document in OpenOffice writer.

Is there some extra setting that allows macros to be started?

Mirko Nasato

unread,
Jan 1, 2010, 7:23:50 AM1/1/10
to JODConverter
Yep all macros are disabled by default when opening documents
programmatically, for security reasons.

To enable them you need to set the "MacroExecutionMode" property

http://api.openoffice.org/docs/common/ref/com/sun/star/document/MediaDescriptor.html
http://api.openoffice.org/docs/common/ref/com/sun/star/document/MacroExecMode.html

How to do that depends on which JODConverter version you're using and
how you're using it.

Kind regards

Mirko

Reply all
Reply to author
Forward
0 new messages