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
--
Sent from: http://document-foundation-mail-archive.969070.n3.nabble.com/Users-f1639498.html
--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy
Context
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.