7 messages in org.openoffice.fr.prog[prog] Réf. : Re: [prog] Incorporer a...
FromSent OnAttachments
Greborio RobertDec 12, 2005 6:39 am 
c.ma...@univitis.frDec 12, 2005 6:52 am 
Alex ThurgoodDec 12, 2005 10:09 pm 
Greborio RobertDec 13, 2005 12:43 am 
Bernard MarcellyDec 13, 2005 1:31 am 
DominiqueDec 13, 2005 1:37 am 
Greborio RobertDec 13, 2005 5:21 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:[prog] Réf. : Re: [prog] Incorporer automatiquement un dessin dans CalcActions...
From:Dominique (dbra@tele2.fr)
Date:Dec 13, 2005 1:37:29 am
List:org.openoffice.fr.prog

Bonjour,

Ouvrir une macro depuis une autre macro

Sub Essai dim fichierdata as string dim SOFFICE as string dim oDocument as object dim maChaine as string SOFFICE = "C:\Program Files\OpenOffice.org 2.0\program\soffice.exe" Dim noArgs() as new com.sun.star.beans.PropertyValue fichierData = "a:\Dom.odt" oDocument = StarDesktop.loadComponentFromURL(convertToURL(fichierData), _blank", 0, noArgs())

maChaine = SOFFICE & " macro://Dom/Library1.Module1.Main" 'msgBox maChaine shell(maChaine)

End Sub

-------Message original-------

De : Bernard Marcelly Date : 12/13/05 10:40:12 A : pr@fr.openoffice.org Sujet : Re: [prog] Incorporer automatiquement un dessin dans Calc

Bonjour Greborio Robert Ce problème revient périodiquement et j'espérais que ceux qui ont été dépannés répondraient. Le fond du problème est : comment exécuter une macro d'un document qu'on ouvre par programme ?

Voir <http://www.mail-archive.com/prog@fr.openof@> ou encore, plus spécifique Delphi <http://www.mail-archive.com/prog@fr.openof@>

Bernard

----- Livre Programmation OpenOffice.org 2 <http://www.eyrolles com/Informatique/Livre/9782212117639/livre-programmation-openoffice-org-2 php>