7 messages in org.openoffice.fr.prog[prog] AFFICHER LE TEXTE D4UN PARAGRAPHE
FromSent OnAttachments
zorglub.1erFeb 16, 2006 3:09 pm 
Catherine BancillonFeb 17, 2006 12:46 am 
Laurent GodardFeb 17, 2006 12:54 am 
michel tanguyFeb 17, 2006 1:07 am 
Catherine BancillonFeb 17, 2006 1:23 am 
c.ma...@univitis.frFeb 17, 2006 4:57 am 
Bernard MarcellyFeb 17, 2006 5:52 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:[prog] AFFICHER LE TEXTE D4UN PARAGRAPHEActions...
From:Catherine Bancillon (cath@dpma.finances.gouv.fr)
Date:Feb 17, 2006 12:46:21 am
List:org.openoffice.fr.prog

BOOonjOOour, j'ai quelque souci avec la version 2.0, je n'arrive plus à afficher le texte de mon paragraphe ceci fonctionnait parfaitement en V1 :

Sub AfficherTexteSelection rem -Afficher le contenu du 15ème paragraphe dans un message------------ Dim document As Object Dim monCurseur As Object Dim MonTexte As Object Dim i As Integer rem ---------------------------------------------------------------------- document = ThisComponent MonTexte = document.Text monCurseur = MonTexte.createTextCursor for i = 1 to 14 monCurseur.gotoNextParagraph(False) 'si on initialise à true on sélectionnera, donc on affichera aussi le contenu de
ces 14 paragraphes next i monCurseur.gotoNextParagraph(True) '15ème paragraphe MsgBox monCurseur.String End Sub

maintenant ma chaîne est vide.

Comment faire en V2???

MERCI à vous

Catherine