I know that this question has already been answered but the given solution doesn't work for me. The given solution is:
Dim oDoc As Object
Dim Path$
oDoc = ThisComponent
Path$ = oDoc.getURL()
Actually this returns an empty string ("") for me. Is there something I missed?
I'm on LibreOffice 4.3.1.2 on Kubuntu 12.04.
Thanks for your help!