I'm writing an application that creates CSV-files and automatically loads a text template for the mail merge function. The mail merge fields in the template are connected with a text database that refers to the directory where the CSV files are created.
Because it must be possible to open multiple mail merge documents at the same time with different data sets, every CSV-file gets a unique generated name. Obviously this generated name is different from the table name the mail merge fields in the template refer to. So what I need to do is to make the mail merge fields refer to the proper database table. Manually I can do this easily with the Edit -> Exchange Database... dialog. But how do I script this? To make this clear, I'm *not* looking for a way to call the Exchange Database... dialog from a macro. I want to get the effect of "Exchange Database..." from a script without user intervention, i.e. given the name of a database and/or table, modify the mail merge fields to refer to the new database/table. I'm working with OO 2.0 Beta in Java but example code in other languages is welcome, as are pointers to UNO services/interfaces/properties that may help me. I also have the OO sources lying around, so if that could be helpful I'd take a look at the C++ implementation of Exchange Database... if someone tells me where I can find it. Matthias Benkmann --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]