Bonjour,
Voici comment executer une macro depuis une invite de commande ou un fichier
batch :
"C:\<chemin\vers\executable\OOo>"
macro:///<nom_bibliotheque>.<nom_module>.<nom_procédure>
Quelques exemples:
* macro sans argument
"C:\Program Files\OpenOffice.org 3\program\soffice.exe"
macro:///test.Module1.Main
* macro avec 2 arguments (une chaine et un entier)
"C:\Program Files\OpenOffice.org 3\program\soffice.exe"
macro:///test.Module1.Main("valeur", 15)
* pour executer la macro sans splash screen
"C:\Program Files\OpenOffice.org 3\program\soffice.exe" -nologo
macro:///test.Module1.Main("valeur", 15)
Cordialement,
T. Vataire
----- Mail Original -----
De: "Laurent" <[email protected]>
À: [email protected]
Envoyé: Mercredi 1 Avril 2009 18h04:39 GMT +01:00 Amsterdam / Berlin / Berne /
Rome / Stockholm / Vienne
Objet: [prog] batch file to launch calc macro
Hello, i succeed in programming a macro that produces numerous files (calc)
but i want to use oo automatically by launching this macro with a scheduled
task (w2003). How can i launch from a .bat file ? or a .php file?
---------------------------------------------------------------------
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]