8 messages in org.openoffice.fr.progRe: [prog] Re: Re: redimensionner im...
FromSent OnAttachments
Rémi BSep 1, 2008 2:22 pm 
Bernard MarcellySep 2, 2008 5:39 am 
Rémi BSep 2, 2008 10:43 am 
Bernard MarcellySep 2, 2008 12:34 pm 
Rémi BSep 2, 2008 1:18 pm 
Didier Dorange-PattoretSep 2, 2008 1:35 pm 
Bernard MarcellySep 3, 2008 3:12 am 
Rémi BSep 4, 2008 1:46 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:Re: [prog] Re: Re: redimensionner image JPG par macroActions...
From:Bernard Marcelly (marc@club-internet.fr)
Date:Sep 3, 2008 3:12:32 am
List:org.openoffice.fr.prog

Message de Rémi B date 2008-09-02 22:19 :

Voici ci-dessous un exemple qui ne marche pas :

Sub Essai Dim oImage as Object

oImage = ThisComponent.createInstance("com.sun.star.drawing.GraphicObjectShape") oImage.GraphicURL = ConvertToURL("/home/remi/Desktop/trombinOOo/tests/test.bmp")

LireInfoImage(oImage)

Et non, ça n'est pas possible de lire ainsi les informations de l'image... Utilise Xray, tu verras un objet avec des propriétés vides ! Xray oImage

Il faut d'abord insérer l'image dans un document, alors l'API remplit les propriétés de l'objet oImage.

______ Bernard