3 messages in org.openoffice.fr.progRe: [prog] Copier / Coller un documen...
FromSent OnAttachments
Alexandre MILLOTJul 19, 2004 12:26 am.gif
Agnès SimonetJul 19, 2004 1:34 am 
Alexandre MILLOTJul 19, 2004 1:50 am.gif
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] Copier / Coller un document dans un autreActions...
From:Agnès Simonet (agne@laposte.net)
Date:Jul 19, 2004 1:34:13 am
List:org.openoffice.fr.prog

Bonjour Alexandre,

Alexandre MILLOT a écrit :

Bonjour, Mon problème est simple, je cherche à faire un copier coller d'un document swriter à l'interieur d'un autre document. J'utilise dispatch (copy et paste) mais j'arrive pas à selectionner l'integralité de mon document à copier.

Merci de me donner un coup de main. Alexandre

sub SelectionnerTout Dim oDoc Dim oText As Object Dim oCurseur As Object

oDoc=ThisComponent oText = oDoc.Text 'curseur d'écriture au début oCurseur= oText.createTextCursor 'curseur d'écriture à la fin, en sélectionnant oCurseur.gotoEnd(true) 'rendre la sélection visible pour l'utilisateur (inutile) oDoc.CurrentController.Select(oCurseur)

end sub

Agnès S.