• Use of macros in OO Documents
Replies:
2
Views:
165
Up one level
• Use of macros in OO Documents
Posted by
malcooke
at
2010-03-25 11:38:28
Hi Markus,
Long time no write We are opening a document using ag.ion.bion.workbench.office.editor.ui.TextOfficeEditor and are encountering a security dialogue when try to run a macro associated with the document. Looking at the OpenOffice site it seems to suggestthat macros are normally disabled when opening a document programattically unless the property MacroExecutionMode has a value which allows macros to be opened uncoditionally (which is quite safe in our app) see OOo api here http://api.openoffice.org/docs/common/ref/com/sun/star/document/MacroExecMode.html. I presume this value should be passed as part of DocumentDescriptor when doing the load of the document (must admit I am never sure when reading Open Office documentation). I have looked at the forums as much as I can but can't see anything obvious in relation to this - but I don't speak german so it may have already been answered. Apologies if it has. My questions are: 1. Have you encountered this macro problem before and if so do you have a remedy? 2. is my reasoning correct as to the cause of the problem? 3. how can we set this value for MacroExecutionMode using NOA4e (assuming that's what we want to do)? We are still quite happily using 2.0.9 of NOA4e. Thanks for a great product. |
malcooke
Member
Posts:
25
|
• Re: Use of macros in OO Documents
Posted by
Markus Krueger
at
2010-03-25 14:18:08
Hi,
the next release of NOA 2.2.3 will contain a way to set this mode with documentDescriptor.setMacroExecutionMode(MacroExecMode.ALWAYS_EXECUTE_NO_WARN); Unfortunatelly, this release is not dated yet since there is only one change since 2.2.2 which would not justify a release. Regards, Markus |
• Re: Use of macros in OO Documents
Posted by
malcooke
at
2010-03-25 23:35:00
Hi Markus
Many thanks for the swift response. At least I know what I have to wait for now. Kind regards Malcolm |
malcooke
Member
Posts:
25
|


