On 16/02/2007, at 12:39 AM, Mathias Bauer wrote:

Dominique De Munck schrieb:

Hi,

I'm using the Java bootstrap method to open a OO Writer document as
described in:

http://codesnippets.services.openoffice.org/Office/ Office.BootstrapOpenOffice.snip


However, when there are macros included in the document that I'm opening,
the user gets no Alert that the document contains macro's. The macros
are present, but they do nothing when the users calls them via the OO GUI.


The "do nothing" issue is reported here:
http://qa.openoffice.org/issues/show_bug.cgi?id=74177
Perhaps you could add a comment about the case using a macro.

thanks

Jim




When opening openoffice normally via Windows, I get  a warning, and
the macros work.

I tried to play with the macro security settings but to no avail.

Can I solve this problem programmaticly, or is this a bug ?

I assume that you didn't specify the MacroExecMode:

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

It has to be provided in the MediaDescriptor (the arguments sent with
the loadComponentFromURL call) as described at

http://api.openoffice.org/docs/DevelopersGuide/OfficeDev/ OfficeDev.xhtml#1_1_5_Handling_Documents

You also should add the DocumentUpdateMode.

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





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to