On 09/03/2011 15:10, underscore wrote: > I was setting the background image as follows : > > (xSectionProps is the XPropertySet of a XTextSection ) > > Object bitmapTable = > createInstance("com.sun.star.drawing.BitmapTable"); > XNameContainer nameContainer = ooQueryInterface.XNameContainer(bitmapTable); > String graphicName = "section-background" > nameContainer.insertByName(graphicName, "file:/home/user/file.png");
i guess this should be "file:///home/user/file.png", right? does that work? > graphicURL = (String) nameContainer.getByName(graphicName); > > xSectionProps.setPropertyValue("BackGraphic", graphicURL); > xSectionProps.setPropertyValue("BackGraphicFilter", "PNG - Portable > Network Graphic"); > xSectionProps.setPropertyValue("BackGraphicLocation", > com.sun.star.style.GraphicLocation.TILED); > > But this does not seem to work in OOo 3.3 ? in case it's not because of the URL: how exactly does it not work? can you verify that the same code you're trying to run against OOo 3.3 works if you run it against OOo 3.2? > Whats the way to set the background image of a section now ? > > > thanks > > Ashok -- "The 'sound' banker, alas! is not one who sees danger and avoids it, but one who, when he is ruined, is ruined in a conventional and orthodox way along with his fellows so that no one can really blame him." -- John Maynard Keynes -- ----------------------------------------------------------------- To unsubscribe send email to dev-unsubscr...@openoffice.org For additional commands send email to sy...@openoffice.org with Subject: help