37 messages in org.openoffice.fr.progRE: [prog] Question de débutant
FromSent OnAttachments
Arnaud LAURENSON - Costes GestionAug 24, 2005 7:07 am 
Christophe LiénardAug 24, 2005 9:18 am 
chris drauxAug 24, 2005 11:09 am 
JovialAug 24, 2005 1:06 pm 
Bernard MarcellyAug 24, 2005 11:31 pm 
Christophe LiénardAug 25, 2005 12:16 am 
Arnaud LAURENSON - Costes GestionAug 25, 2005 12:38 am 
RedletAug 25, 2005 12:43 am 
Arnaud LAURENSON - Costes GestionAug 25, 2005 12:46 am 
RedletAug 25, 2005 1:07 am 
Christophe LiénardAug 25, 2005 1:14 am 
Arnaud LAURENSON - Costes GestionAug 25, 2005 1:28 am 
Arnaud LAURENSON - Costes GestionAug 25, 2005 1:37 am 
RedletAug 25, 2005 1:38 am 
Alex ThurgoodAug 25, 2005 1:47 am 
Arnaud LAURENSON - Costes GestionAug 25, 2005 2:09 am 
Arnaud LAURENSON - Costes GestionAug 25, 2005 2:38 am 
JovialAug 25, 2005 2:41 am 
Christophe LiénardAug 25, 2005 3:34 am 
Alex ThurgoodAug 25, 2005 4:00 am 
Bernard MarcellyAug 25, 2005 4:20 am 
Arnaud LAURENSON - Costes GestionAug 25, 2005 4:51 am 
Christophe LiénardAug 26, 2005 5:32 am 
Bernard MarcellyAug 26, 2005 7:29 am 
Christophe LiénardAug 26, 2005 7:43 am 
Bernard MarcellyAug 26, 2005 9:09 am 
Christophe LiénardAug 29, 2005 12:19 am 
Didier LarocheSep 22, 2005 11:15 am 
Christophe LiénardSep 23, 2005 12:41 am 
FRBSep 23, 2005 4:49 am 
Marie jo KOPP CASTINELSep 23, 2005 6:03 am 
Alain NowakSep 26, 2005 12:41 am 
Fred...@equipement.gouv.frSep 26, 2005 4:53 am 
Christophe LiénardSep 26, 2005 5:29 am 
Alain NowakSep 26, 2005 5:29 am 
Laurent GodardSep 26, 2005 5:54 am 
Fred...@equipement.gouv.frSep 26, 2005 6:22 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] Question de débutantActions...
From:Fred...@equipement.gouv.fr (Fred@equipement.gouv.fr)
Date:Sep 26, 2005 6:22:52 am
List:org.openoffice.fr.prog

merci à tous les deux j'ai trouvé le MSG entre temps me reste plus qu'a trouvé comment lancé ma macro au démaraage ..

a bienôt

-----Message d'origine----- De : Alain Nowak [mailto:ano@starxpert.fr] Envoyé : lundi 26 septembre 2005 14:30 À : pr@fr.openoffice.org Objet : Re: [prog] Question de débutant

Bonjour,

Voir le message précédent sur cette liste avec un code testé récemment : http://fr.openoffice.org/servlets/ReadMsg?list=prog&msgId=2220711

Fred@equipement.gouv.fr a écrit :

Bonjour encherchant sur internet comment faire pour qu'un bouton m'ouvre un formulaire j'ai trouvé cela :

Sub ouverture_formulaire

oDesktop = createUnoService ("com.sun.star.frame.Desktop") Dim loadArgs(0) as new com.sun.star.beans.PropertyValue loadArgs(0).Name = "showen" loadArgs(0).Value = true oDocument = oDesktop.LoadComponentFromURL(convertToURL("T:\gestion maintenance RN\Piece.odb"), "_blank", 0, loadArgs()) oForms = oDocument.FormDocuments oForm = oForms.getByName("Form gestion piece technique") rem oConnection =oDocument.Datasource.getConnection("","") Dim formArgs(0) as new com.sun.star.beans.PropertyValue rem formArgs(0).Name = "ActiveConnection" rem formArgs(0).Value = oConnection oFormDoc = oForms.LoadComponentFromURL("Form gestion piece technique", "_blank", 0, formArgs())

oDocument.dispose

End Sub

Donc j'utilise openoffice 2.0, j'ai une base de donnée "Piece.odb" qui contient un formulaire "Form accueil" avec des boutons pour lancer d'autres formulaire par exemple "Form gestion piece technique". J'ai donc écrit le code si dessus le formulaire se lance bien puis disparait de l'écran.

Quelqu'un peut il éclairer mes lanternes ???

me dire aussi ce que fait oDocument.dispose ?

Par avance merci.