4 messages in org.openoffice.fr.progRe: [prog] stardesktop.loadComponent ...
FromSent OnAttachments
JovialNov 23, 2004 2:32 pm 
JovialNov 23, 2004 2:44 pm 
Laurent GodardNov 23, 2004 11:26 pm 
JovialNov 24, 2004 3:50 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [prog] stardesktop.loadComponent > execution macro > okActions...
From:Jovial (luck@free.fr)
Date:Nov 24, 2004 3:50:01 am
List:org.openoffice.fr.prog

Bonjour

Laurent Godard a écrit :

Pour l'utiliser: arg(0).Value = com.sun.star.document.MacroExecMode.NEVER_EXECUTE

Ok ! j'était à coté de la plaque avec mon arg(0).Value = "ALWAYS_EXECUTE_NO_WARN" C'est donc ça les horribles constantes! Encore une que j'aurai jamais trouvé tous seul. Merci :-)

Ce qui donne pour ouvrir un document avec les macros actives

Dim DocCible as Object Dim PropFich(0) as new com.sun.star.beans.PropertyValue URLfichierOOo = "C: \mes documents\oDoc.sxc" PropFich(0).Name="MacroExecutionMode" 'argument pour rendre le document invisible à l'utilisateur (non utilisé) PropFich(0).Value = com.sun.star.document.MacroExecMode.ALWAYS_EXECUTE_NO_WARN DocCible=stardesktop.loadComponentFromURL(URLfichierOOo, "_blank", 0, PropFich())

Jean-Luc