4 messages in org.openoffice.fr.progRe: Re: [prog] Utiliser OpenOffice vi...
FromSent OnAttachments
CCCDec 3, 2004 4:55 am 
Bernard MarcellyDec 3, 2004 12:14 pm 
Gilles VALFREDec 5, 2004 11:24 pm 
CCCDec 13, 2004 4:14 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: Re: [prog] Utiliser OpenOffice via VB.NETActions...
From:Gilles VALFRE (g.va@g2c.fr)
Date:Dec 5, 2004 11:24:49 pm
List:org.openoffice.fr.prog

A partir de VBA, tu peux faire cela pour ouvrir OOo, tu dois pouvoir l'adapter à
VB.net : Set objServiceManager = CreateObject("com.sun.star.ServiceManager") :
ouverture dOOo Set objDesktop =
objServiceManager.createInstance("com.sun.star.frame.Desktop") : ouverture dOOo,
les deux lignes sont nécessaires Set objDocument = objDesktop.loadComponentFromURL(nom_cv, "_blank", 0, args)
: chargement d'un fichier

======== 2004-12-03 21:15:19 ========

At 2004-12-03 13:55, CCC wrote:

Bonjour, Je voudrais pouvoir exécuter OOorg via un programme en VB.NET, lui faire ouvrir un fichier, lancer la correction orthographique et quitter le programme. Et je n'y arrive pas, ne serais-ce que l'ouverture de OOorg. J'ai trouvé sur différents site des bouts de code pour VB ou Delphi mais rien ne marche. < http://delphi.developpez.com/faq/?page=opengenera> < http://www.kalitech.fr/clients/doc/VB_APIOOo_fr.html>

Sans doute que je transpose mal. Au final, j'obtient une erreur du type variable de type incorrect. Si quelqu'un pouvait me mettre sur la voie.

Je ne connais pas ce language mais une recherche sur OOoForum donne ceci. Visual Basic .NET < http://www.oooforum.org/forum/viewtopic.php?t=6018> < http://www.oooforum.org/forum/viewtopic.php?t=1918> et aussi : ASP.NET < http://www.oooforum.org/forum/viewtopic.php?t=13948> ASP.NET < http://www.oooforum.org/forum/viewtopic.php?t=11554>

Bernard