4 messages in org.openoffice.fr.prog[prog] RE : [prog] Macro - OOo - Writer
FromSent OnAttachments
AlainSep 27, 2004 9:11 am.jpg
Bernard MarcellySep 28, 2004 5:52 am 
AlainSep 29, 2004 8:39 am.jpg
michel tanguyOct 17, 2004 11:41 pm 
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:[prog] RE : [prog] Macro - OOo - WriterActions...
From:michel tanguy (bugb@club-internet.fr)
Date:Oct 17, 2004 11:41:20 pm
List:org.openoffice.fr.prog

bonjour Alain

j'espere que cet exemple pourra t'aider : La macro "Insertion_TextField_Vers_Bookmark" est rattachée à un bouton de la boite de dialogue "Dialog1"

Dim oDialog1 as object Sub Dialog1Show oDialog1 = CreateUnoDialog( DialogLibraries.Standard.Dialog1 ) oDialog1.Execute() End Sub

Sub Insertion_TextField_Vers_Bookmark Dim Cible as String Cible=oDialog1.getControl("TextField1").getText 'insére la donnée de TextField1 dans un bookmark nommé OOoMark 'attention : les anciennes valeurs ne sont pas effacées ThisComponent.getBookmarks().getByName("OOoMark").getAnchor.setString(Ci ble) End Sub

bonne journée michel

<Merci Bernard, de ton aide, mais ce que je cherche à faire, c'est renvoyer TextField1 dans mon document texte à un <endroit donné (signet), et non sur une boite d'info, si t'as la solluce, n'hésite pas et merci encore pour le coup <d'main. <Alain