There are some functions in the Tools library ("Strings" module) which
you can use. The one you specifically want is called FileNameoutofPath
Jurgen van Doorn wrote:
Thanx Stephan. I'm going to try this.
Regards,Jurgen
<http://www.derealisatiegroep.nl/>
________________________________
Van: Stephan Wunderlich [mailto:[EMAIL PROTECTED]
Verzonden: ma 29-1-2007 9:53
Aan: [email protected]
Onderwerp: Re: [api-dev] Macro writer to get filename document
Hi Jurgen,
I'm looking for code to get the filename of the current document in
writer.
In MS word is it like Activedocument.name but in Openoffice?
you can query the XModel from your document, which has a method getURL
() that should do what you want.
Regards
Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]