Thanks Andrew, took a look at your examples, but I am not sure anymore if the configuration service is really what I want...
I guess that what I want is similar to creating a registry entry under windows XP. When OOo is opened (ideally already with the quick start) a string (i.e. the path to the file I want to open) is made available to the macros. (How/where the macros will read it will be the subject of a subsequent email :) ) Cheers, Michele On 11/10/05, Andrew Douglas Pitonyak <[EMAIL PROTECTED]> wrote: > > Michele Zarri wrote: > > >Hi, > > > >I hope this is the right list, if not, apologies. > >I have written a macro that relies on a configuration file where I store > >some parameters. I would like to avoid to re-open the file every time the > >macro is executed so I would like writer to "remember" whether the file > has > >been opened or not for a given session. I cannot use global constants > >because from time to time I need to change the configuration parameters > (I > >have also created the macros to do it). > >Although the file is quite small and it takes no time to open it and > parse > >it, I would still like to use a more generic approac. > >Not knowing the Java language I gave up on the developer's guide > paragraph > >on configuration, so my questions are: > >1) is there a place where the developers guide examples are "translated" > in > >OOoBasic? > >2) is there somewhere an example of storing configuration parameters? > > > >Cheers, > > > >Michele > > > > > I have some old examples in section 5.5 and 5.7 of my free macro document. > > -- > Andrew Pitonyak > My Macro Document: http://www.pitonyak.org/AndrewMacro.sxw > My Book: http://www.hentzenwerke.com/catalog/oome.htm > Info: http://www.pitonyak.org/oo.php > See Also: http://documentation.openoffice.org/HOW_TO/index.html > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
