11 messages in org.openoffice.fr.prog[prog] [Draw] collection de shapes
FromSent OnAttachments
Agnès SimonetDec 4, 2004 2:10 pm 
Laurent GodardDec 4, 2004 11:04 pm 
Laurent GodardDec 4, 2004 11:11 pm 
Bernard MarcellyDec 5, 2004 2:30 am 
Agnès SimonetDec 5, 2004 6:04 am 
Agnès SimonetDec 5, 2004 6:46 am 
Laurent GodardDec 5, 2004 7:43 am 
Agnès SimonetDec 5, 2004 9:28 am 
Laurent GodardDec 5, 2004 9:48 am 
Agnès SimonetDec 5, 2004 12:23 pm 
Bernard MarcellyDec 6, 2004 2:50 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] [Draw] collection de shapesActions...
From:Agnès Simonet (agne@laposte.net)
Date:Dec 4, 2004 2:10:20 pm
List:org.openoffice.fr.prog

Bonjour,

J'ai une page de draw comportant 2 formes, l'une appelée "ovale" et l'autre "rectangle". Je voudrais les placer dans une collection.

En m'inspirant de ma bible habituelle, j'ai écrit la portion de code suivante :

------------ ' trouve les 2 formes en appelant la fonction de Danny Brewer MonRectangle = FindObjectByName( LaPage, "rectangle" ) MonOvale = FindObjectByName( LaPage, "ovale" )

'les place dans une collection Collect1 = createUnoService("com.sun.star.drawing.ShapeCollection") 'XRay.XRay Collect1 Collect1.add(MonOvale) Collect1.add(MonRectangle) MonGroupe = LaPage.group(Collect1)

------------

J'ai un message d'erreur sur la ligne 'Collect1.add(MonOvale)' : "cannot coerce argument type during corereflection call !"

Quelqu'un sait-il ce qui ne plait pas à Mr Basic ?

Agnès S.