Date: prev next · Thread: first prev next last
2018 Archives by date, by thread · List index

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

' --------------------------------------------------------
Function ImportBitmapIntoWriter(sFile As String) As Object

        Dim oBitmaps As Object
        Dim sNewUrl As String
        Dim oDoc As Object
        oDoc = ThisComponent
        oBitmaps = oDoc.createInstance("")
        ' 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
        ' ... some more stuff...
End Function
' --------------------------------------------------------

In earlier LO versions up to this works without problems. 
Now I have upgraded to 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, 

P.S.: It's about the "OOoLilyPond" extension:

Sent from:

To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
Privacy Policy:


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.