11 messages in org.openoffice.fr.progRe: [prog] [Writer - OOo 2] Variable ...
FromSent OnAttachments
Fr...@idkal.comJan 20, 2006 8:01 am 
Laurent GodardJan 20, 2006 8:16 am 
Fr...@idkal.comJan 23, 2006 2:58 am 
Fr...@idkal.comJan 27, 2006 7:30 am 
Laurent GodardJan 27, 2006 7:39 am 
Fr...@idkal.comJan 30, 2006 1:15 am 
Laurent GodardJan 30, 2006 1:26 am 
Fr...@idkal.comJan 31, 2006 5:37 am 
Fr...@idkal.comJan 31, 2006 6:20 am 
oo...@volcar.orgFeb 1, 2006 11:48 am 
Fr...@idkal.comFeb 2, 2006 12:07 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] [Writer - OOo 2] Variable texte dans un champActions...
From:Fr...@idkal.com (Fr@idkal.com)
Date:Jan 23, 2006 2:58:57 am
List:org.openoffice.fr.prog

Bonjour Laurent,

Merci pour ta réponse, mais il subsite un problème : voici ma synthaxe :

monTxtField = ThisComponent.TextFieldMasters.getByName("com.sun.star.text.FieldMaster.User.var")

Voici la réponse...

Laurent Godard a écrit :

Bonjour Fred

Après de petites recherches je passe par le biais de cet objet : *ThisComponent.TextFieldMasters

*Ma variable est bien insérée dans mon mon document et il devient alors possible de l'éditer en double cliquant dessus... Mais pour un développeur ce n'est pas marrant :p

Comment accéder à la valeur de cette variable sous forme de macros ?

monTextField = ThisComponent.TextFieldMasters.getByName("com.sun.star.text.FieldMaster.User."+NomDuChamp)

print monTextField.content

livre ed.2 page 299

Merci d'avance et bon week end à tous ;)

merci à toi aussi

begin:vcard fn:Fred n:;Fred org:IDKAL url:http://www.idkal.com version:2.1 end:vcard