But I can't get the URL in LibreOffice.
Try this
Code: Select all
Sub Test
GlobalScope.BasicLibraries.loadLibrary ("XrayTool")
oDoc = ThisComponent
oStorage = oDoc.DocumentStorage.getByName("Pictures")
aElem = oStorage.getElementNames()
for each sItem in aElem
msgbox sItem
next
oSheet = oDoc.CurrentController.ActiveSheet
oSel = oDoc.CurrentSelection
oShape = oSel.Annotation.AnnotationShape
oBMP = oShape.FillBitmap
xray oBMP
End sub
But where is the jpg in oBMP?