Message de Johnny Rosenberg date 2013-09-28 17:03 :
Is there a similar way to get the folder name directly? I couldn't find it
Not directly. But you can use a routine from the Tools library:
Dim docFolder As String
GlobalScope.BasicLibraries.loadLibrary("Tools")
docFolder = DirectoryNameoutofPath(ThisComponent.URL, "/")
MsgBox(docFolder, 0, "Folder of this document")
And, referring to your code, you don't need to ConvertToURL() what is already an
URL address ;-)
Regards
Bernard
---------------------------------------------------------------------
To unsubscribe, e-mail: api-unsubscr...@openoffice.apache.org
For additional commands, e-mail: api-h...@openoffice.apache.org