http://openoffice.org/bugzilla/show_bug.cgi?id=116753
hanya <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #5 from hanya <[email protected]> 2011-03-10 08:01:33 --- I want to make this problem clear, I have met the same problem in the following forum and mailing-list. http://www.oooforum.org/forum/viewtopic.phtml?t=115594&highlight= http://openoffice.org/projects/api/lists/dev/archive/2011-03/message/15 My code works well posted in the above thread written in Basic on OOo 3.3.0. Sub EmbedImageIntoPageBackground sURL = "file:///home/asuka/Documents/images/logo.png" sName = "Logo" oDoc = ThisComponent oBitmapTable = oDoc.createInstance("com.sun.star.drawing.BitmapTable") If NOT oBitmapTable.hasByName(sName) Then oBitmapTable.insertByName(sName, sURL) End If sInternalURL = oBitmapTable.getByName(sName) oStyleFamilies = oDoc.getStyleFamilies() oStyleFamily = oStyleFamilies.getByName("PageStyles") oStyle = oStyleFamily.getByName("Standard") oStyle.BackGraphicURL = sInternalURL End Sub I checked the problem with the above code on both 3.2.1 and 3.3.0. I have an image in the following URL and it is inserted with the following name: sURL = "file:///E:/usr/chart_1.png" sName = "section-background" If I change the sURL starting from "file:///" to "file:/" (this is illegal), NoSuchElementException raised on OOo 3.3.0, but not on 3.2.1. -- Configure bugmail: http://openoffice.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Bugzilla. Please log into the website and enter your comments. --------------------------------------------------------------------- -- ----------------------------------------------------------------- To unsubscribe send email to [email protected] For additional commands send email to [email protected] with Subject: help -- ----------------------------------------------------------------- To unsubscribe send email to [email protected] For additional commands send email to [email protected] with Subject: help
