Re: [api-dev] Adding image and stro it in an odt or ott document

2009-04-09 Thread Fernand Vanrie
Lars, Sorry I was a bit to hasty, first you need tha originalgraphic who is stored some where: oOriginalGraphic = getGraphFromURL(converttoURL(Ographic1.HyperLinkName)) then ad this graphic to the shape oshape.graphic = oOriginalgraphic and now oGraph.GraphicURL = oShape.GraphicURL greetz

Re: [api-dev] Adding image and stro it in an odt or ott document

2009-04-08 Thread Fernand Vanrie
Lars , oShape.GraphicURL = sURL oGraph.GraphicURL = sURL here you makes the mistake, if you want that the graphic is embedded in the document you need a internal URL and there for we uses the URL who points to the Oshape so just change oGraph.GraphicURL = sURL to oGraph.GraphicURL = oSha

[api-dev] Adding image and stro it in an odt or ott document

2009-04-08 Thread Lars Rosenberg
Hi I have a problem I'm trying to solve. I want to add an image to a template when the templates scripÄt is executed after pressing an OK button. The image is addes as I want it's scaled to the right dimentions but when I save he template with another name and send the document as an attachmen