Bonjour, Merci pour votre réponse. Après de nombreux tests et des questions posées sur [EMAIL PROTECTED], pas de solution. J'ai créé ce ticket : http://www.openoffice.org/issues/show_bug.cgi?id=86351 A suivre... Antoine
-----Message d'origine----- De : Serge LE LOUARNE [mailto:[EMAIL PROTECTED] Envoyé : mardi 11 décembre 2007 18:00 À : prog@fr.openoffice.org Objet : Re: [prog] Appel de macro OOBasic via Java Antoine POURCHEZ a écrit : > Je voulais parler d'une macro OO Basic. Existe-t-il des points d'entrée dans > l'API pour piloter ce type d'objet depuis l'extérieur du document? J'ai > cherché du coté de "vnd.sun.star.script", et également en passant par la > mécanique d'events (com.sun.star.frame.DispatchHelper), sans arriver à > exécuter la macro sans erreur... > Antoine > Bonjour, Dans ce cas, oui, tu peux attaquer l'API et donc appeler des macros. Il y a un petit exemple page 339 du "Developper Guide" pour afficher une boite de dialogue. Il yest dit, au sujet de l'exemple donné, ceci : "If the dialog that should be created is placed inside a document a com.sun.star.frame.XModel interface xModel representing this document has to be passed. It's used as argument to initialise the DialogProvider service enabling the access to the document's Dialog Libraries. If xModel is null the dialog has to be placed in the application library container. This also has to be reflected in the DialogURL passed to the method" Mais je n'ai rien testé. Bonne chasse, A+ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]