Hi Robert,
thanks for your reply.
I have formatted all code snippets as "raw". In the preview, they were still
there, but here it seems that nabble has completely removed them. This time,
I'll work without formatting.
Okay, here is my question again:
I have a macro that loads a svg image file and inserts it into a Writer
document:
' --------------------------------------------------------
Function ImportBitmapIntoWriter(sFile As String) As Object
Dim oBitmaps As Object
Dim sNewUrl As String
Dim oDoc As Object
oDoc = ThisComponent
oBitmaps = oDoc.createInstance("com.sun.star.drawing.BitmapTable")
' If there is an older entry with that name, remove it:
If oBitmaps.hasByName( "OOoLilyPond" ) Then
oBitmaps.removeByName( "OOoLilyPond" )
End If
' 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.
' ... some more stuff...
End Function
' --------------------------------------------------------
In earlier LO versions up to 6.0.6.2 this works without problems.
Now I have upgraded to 6.0.1.3 and the line
sNewURL = oBitmaps.getByName( "OOoLilyPond" )
causes the following error:
"Incorrect property value."
I have no idea what is happening here... can anybody help me?
Thanks for any hint.
Best wishes,
Klaus
P.S.: It's about the "OOoLilyPond" extension:
https://extensions.libreoffice.org/extensions/ooolilypond
https://github.com/openlilylib/LO-ly