Bonsoir, avec le code ci-dessous, l'image essai2.png est insérée dans la galerie mais pas odraw qui est un shapecollection (courbe fabriquée par Dmaths).
Avez-vous une idée ? Merci et cordialement. / sub InsertItem //Dim inDexx as Long //monDocument = ThisComponent oGalleryThemes = createUnoService( "com.sun.star.gallery.GalleryThemeProvider" ) Magal = oGalleryThemes.getByName("Toto") //inDewxx = -1 / /sUrl = convertToUrl("/home/didier/essai2.png") Print Magal.insertURLByIndex (sUrl,inDexx) inDewxx = 5 //odraw = ThisComponent.DrawPage.GetByIndex(0) / /Print Magal.insertDrawingByIndex (odraw,inDexx) End sub/ -- Didier Dorange-Pattoret http://www.dmaths.org http://sesamath.net Soutenez le projet Dmaths : rejoignez le club ou faites adhérer votre établissement ! http://www.dmaths.org/documentation/doku.php?id=presentation:club