9 messages in org.openoffice.fr.progRe: [prog] Problème sur un sélectionn...
FromSent OnAttachments
Cezame ConceptJul 18, 2006 4:27 am 
Florent ManensJul 18, 2006 7:35 am 
Cezame ConceptJul 18, 2006 8:22 am 
Mathias MichelJul 18, 2006 1:47 pm 
Cezame ConceptJul 19, 2006 12:54 am 
Mathias MichelJul 19, 2006 6:24 am 
Cezame ConceptJul 19, 2006 6:52 am 
Laurent GodardJul 19, 2006 7:25 am 
Cezame ConceptJul 24, 2006 1:10 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] Problème sur un sélectionner tout...Actions...
From:Florent Manens (fman@starxpert.fr)
Date:Jul 18, 2006 7:35:46 am
List:org.openoffice.fr.prog

On Tue, Jul 18, 2006 at 01:27:36PM +0200, Cezame Concept wrote:

Je souhaite récupérer dans le presse papier le contenu d’un document oOWriter

Pour cela J’ouvre le document (en mode visible ou pas) puis je fais un sélectionner tout au moyen de la méthode suivante

Public Sub SelectionnerTout() Dim Arguments(0) As Object Arguments(0) = MakePropertyValue("Hidden", False) oSel = oDocument.CurrentController oDispatcher.executeDispatch(oSel, ".uno:SelectAll", "", 0, Arguments) End Sub

Je ne suis pas certain que le dispatcher fonctionne en mode invisible.

D'autre part, pour insérer un document dans un autre (si c'est le but), il existe une API dédiée. (InsertDocumentFromURL)

http://api.openoffice.org/docs/common/ref/com/sun/star/document/XDocumentInsertable.html#insertDocumentFromURL

Cordialement,