Apache OpenOffice (AOO) Bugzilla – Issue 52827
Message box appears, when a graphic object is inserted with wrong URL
Last modified: 2017-05-20 11:28:05 UTC
In a draw document the macro Sub Main oDoc = thiscomponent oObj = createUnoService("com.sun.star.drawing.GraphicExportFilter") Dim shape As Object shape = oDoc.createInstance("com.sun.star.drawing.GraphicObjectShape") Dim shapeSize As new com.sun.star.awt.Size Dim shapePos As new com.sun.star.awt.Point shapeSize.Width = 5000 shapeSize.Height = 5000 shape.setSize(shapeSize) shapePos.x = 1500 shapePos.y = 1000 shape.setPosition(shapePos) oDoc.getDrawPages.getByIndex(0).add(shape) shape.GraphicURL = "file:///plunder.jpg" End Sub pops up a message box, which shouldn't happen when a method is called via API ... this has the side effect that when the same code is called via java, the office seems to freeze. In OOo1.1.x this worked properly without any user interaction
what's you OS ? I tested on MacOSX Tiger OOo 1.9.121 and I did *not* get any messagebox when applying your macro.
sw->cyb: I checked on Solaris but it is independent of the Operating System ... when the graphic file doesn't exist a message box pops up.
Reset assigne to the default "issues@openoffice.apache.org".