[api-dev] Macro writer to get filename document

2007-01-29 Thread Jurgen van Doorn
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

Re: [api-dev] Macro writer to get filename document

2007-01-29 Thread Stephan Wunderlich
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

RE: [api-dev] Macro writer to get filename document

2007-01-29 Thread Jurgen van Doorn
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

Re: [api-dev] Pause execution of script for user input into spreadsheet

2007-01-29 Thread TerryJ
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

Re: [api-dev] Re: Variant vs other types...

2007-01-29 Thread Johnny Andersson
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

Re: [api-dev] Pause execution of script for user input into spreadsheet

2007-01-29 Thread Mathias Bauer
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

Re: [api-dev] Re: Variant vs other types...

2007-01-29 Thread Andrew Douglas Pitonyak
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

Re: [api-dev] Macro writer to get filename document

2007-01-29 Thread TerryJ
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:

[api-dev] Thanks For The Help -- Upgraded From 1.x to 2.x (and upgrade notes)

2007-01-29 Thread John Sisson
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