Hi I've use it with value "4" and it doesn`t work.
Salutacions, Albert Arnau Director Tècnic Valen Computer Ctra. Valls (Urb. Sant Salvador) C/Poeta Mistral, 2 - 43130 - Tarragona Tel (34) 977 52 30 02 - Fax (34) 977 52 30 05 e-mail: [email protected] www.valen.es -----Mensaje original----- De: [email protected] [mailto:[email protected]] Enviado el: lunes, 25 de mayo de 2009 15:43 Para: [email protected] Asunto: Re: [dev] Using Macros Hi Albert, Please use "MacroExecutionMode" as argument name. Best regards, Mikhail. On 05/22/09 10:00, Albert Arnau wrote: > > Hi everybody, > > > > I've a "little" problem with the macros in OpenOffice. > > I've a template where I have developed macros inside, when i open this > template the macros as executed correctly. > > The problem is when i open that template in my application (in visual > basic) the macros are no executed, i don't know why. Here is the code > that I use > > > > *Set oDesk = CreateUnoService("com.sun.star.frame.Desktop")* > > *Set oParam(0) = MakePropertyValue("MacroExecMode", 4)* > > *Set oDoc = oDesk.loadComponentFromURL(ConvertToUrl(SelDoc), "_blank", > 0, oParam())* > > > > I also attack the template > > > > Any help? thanks > > Salutacions, > > > > Albert Arnau > > Director Tècnic > > Valen Computer > > > > Ctra. Valls (Urb. Sant Salvador) > > C/Poeta Mistral, 2 - 43130 - Tarragona > > Tel (34) 977 52 30 02 - Fax (34) 977 52 30 05 > > e-mail: [email protected] <mailto:[email protected]> > > www.valen.es <http://www.valen.es> > > > > ------------------------------------------------------------------------ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > -- Sun Microsystems GmbH Mikhail Voytenko Nagelsweg 55 Software Engineer 20097 Hamburg Phone: (+49 40)23646 500 Germany Fax: (+49 40)23646 550 http://www.sun.de mailto:[email protected] Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten Amtsgericht München: HRB 161028 Geschäftsführer: Thomas Schröder, Wolfgang Engels, Wolf Frenkel Vorsitzender des Aufsichtsrates: Martin Häring --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
