

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
37 messages in org.openoffice.fr.progRe: [prog] Question de débutant| From | Sent On | Attachments |
|---|---|---|
| Arnaud LAURENSON - Costes Gestion | Aug 24, 2005 7:07 am | |
| Christophe Liénard | Aug 24, 2005 9:18 am | |
| chris draux | Aug 24, 2005 11:09 am | |
| Jovial | Aug 24, 2005 1:06 pm | |
| Bernard Marcelly | Aug 24, 2005 11:31 pm | |
| Christophe Liénard | Aug 25, 2005 12:16 am | |
| Arnaud LAURENSON - Costes Gestion | Aug 25, 2005 12:38 am | |
| Redlet | Aug 25, 2005 12:43 am | |
| Arnaud LAURENSON - Costes Gestion | Aug 25, 2005 12:46 am | |
| Redlet | Aug 25, 2005 1:07 am | |
| Christophe Liénard | Aug 25, 2005 1:14 am | |
| Arnaud LAURENSON - Costes Gestion | Aug 25, 2005 1:28 am | |
| Arnaud LAURENSON - Costes Gestion | Aug 25, 2005 1:37 am | |
| Redlet | Aug 25, 2005 1:38 am | |
| Alex Thurgood | Aug 25, 2005 1:47 am | |
| Arnaud LAURENSON - Costes Gestion | Aug 25, 2005 2:09 am | |
| Arnaud LAURENSON - Costes Gestion | Aug 25, 2005 2:38 am | |
| Jovial | Aug 25, 2005 2:41 am | |
| Christophe Liénard | Aug 25, 2005 3:34 am | |
| Alex Thurgood | Aug 25, 2005 4:00 am | |
| Bernard Marcelly | Aug 25, 2005 4:20 am | |
| Arnaud LAURENSON - Costes Gestion | Aug 25, 2005 4:51 am | |
| Christophe Liénard | Aug 26, 2005 5:32 am | |
| Bernard Marcelly | Aug 26, 2005 7:29 am | |
| Christophe Liénard | Aug 26, 2005 7:43 am | |
| Bernard Marcelly | Aug 26, 2005 9:09 am | |
| Christophe Liénard | Aug 29, 2005 12:19 am | |
| Didier Laroche | Sep 22, 2005 11:15 am | |
| Christophe Liénard | Sep 23, 2005 12:41 am | |
| FRB | Sep 23, 2005 4:49 am | |
| Marie jo KOPP CASTINEL | Sep 23, 2005 6:03 am | |
| Alain Nowak | Sep 26, 2005 12:41 am | |
| Fred...@equipement.gouv.fr | Sep 26, 2005 4:53 am | |
| Christophe Liénard | Sep 26, 2005 5:29 am | |
| Alain Nowak | Sep 26, 2005 5:29 am | |
| Laurent Godard | Sep 26, 2005 5:54 am | |
| Fred...@equipement.gouv.fr | Sep 26, 2005 6:22 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: [prog] Question de débutant | Actions... |
|---|---|---|
| From: | Alain Nowak (ano...@starxpert.fr) | |
| Date: | Sep 26, 2005 5:29:40 am | |
| List: | org.openoffice.fr.prog | |
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.
BOUCHET Frédéric tel : 04-77-43-31-50 DDE42/SER/CIGT http://www.hyrondelle.net Etat des routes : 04-77-37-00-37 E-Mail : fred...@equipement.gouv.fr
-- Alain Nowak - StarXpert 6, rue Eugène Varlin - 75010 Paris Tel : 01 53 35 18 37 http://www.starxpert.fr







