Hi,
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?
Kind regards, met vriendelijke groet,
Jurgen van Doorn
de Realisatiegroep BV
Utrechtseweg 79
1213 TM Hilversum
M. 06 - 143 58 858
T. 035 - 62
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
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: dev@api.openoffice.org
Onderwerp: Re: [api-dev] Macro writer to get filename document
Mathias Bauer wrote:
TerryJ wrote:
Someone has asked about this in the forum and I believe there is no
provision in the API for this. I used such code with another
spreadsheet and the person enquiring now has used similar code with
other software.
An example of its use would be to have
Thanks for your interesting reply!
Parts of original messages and comments and maybe more questions below:
2007/1/29, Andrew Douglas Pitonyak [EMAIL PROTECTED]:
Johnny Andersson wrote:
Maybe I should put it another way:
Let's say that I have these lines, among others:
Dim Ctl As
TerryJ wrote:
Mathias Bauer wrote:
TerryJ wrote:
An example of its use would be to have the script navigate to various
locations in the spreadsheet and pause for input by the user at each
location.
Waiting is bad - it creates a loop that can cause reentrance problems.
It's better to
Johnny Andersson wrote:
2007/1/29, Andrew Douglas Pitonyak [EMAIL PROTECTED]:
What do you really want to accomplish? Do you want to copy a range of
data from one location to another? If so, you can use methods to
directly copy the data. I have used cheat methods such as
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:
Hello
I upgraded from OO 1.x to 2.x [nice product] and have begun to look at
our automated install procedures [Wintel :: XP]. The Orca tool required
to massage msi files is impenetrably obscure, so I applied for and
downloaded a trial version of Star-8 which is claimed to have a
customization