1 message in org.openoffice.fr.progRe: [prog] batch file to launch calc...
FromSent OnAttachments
Thibault VataireApr 14, 2009 9:57 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] batch file to launch calc macroActions...
From:Thibault Vataire (tvat@starxpert.fr)
Date:Apr 14, 2009 9:57:20 am
List:org.openoffice.fr.prog

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" <laur@yahoo.fr> À: pr@fr.openoffice.org 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?