Hi, On Thu, Aug 30, 2018 at 09:39:18AM -0700, Pusteblumi <benbignoise@gmx.de> wrote:
' Load the image into the internal bitmap table: oBitmaps.insertByName( "OOoLilyPond", ConvertToURL(sFile) ) ' Up to here, everything works fine. sNewURL = oBitmaps.getByName( "OOoLilyPond" ) ' This line causes the error "Incorrect property value". ' Thus the following lines are not executed.
The bitmap table gives you objects implementing the XBitmap interface, not strings.
oTextGraphic = oDoc.createInstance("com.sun.star.text.GraphicObject") oTextGraphic.GraphicURL = sNewURL
This is reasonable, sounds like <https://gerrit.libreoffice.org/#/c/58745/> should be backported to 6.1. Regards, Miklos
Attachment:
signature.asc
Description: Digital signature