Hi, I have a problem using OO 2.0.4 and css.text.MailMerge. This is what I do:
dim merge as object merge = CreateUnoService("com.sun.star.text.MailMerge") merge.DocumentURL = ConvertToURL(template) merge.DataSourceName = dbname merge.CommandType = com.sun.star.sdb.CommandType.TABLE merge.Command = dbtable merge.OutputType = com.sun.star.text.MailMergeType.FILE merge.OutputURL = ConvertToURL(path) merge.SaveAsSingleFile = True merge.Execute(Array()) With OpenOffice 2.0.4 there is the problem that mail merge fields inside headers/footers are not replaced. This works with OpenOffice 2.4 but I need a solution for OO 2.0.4. The problem only occurs when SaveAsSingleFile is true, so I set it to false and tried to paste manually each generated file into a single output-file afterwards. But using css.document.XDocumentInsertable::insertDocumentFromURL to concatenate the files, the headers and footers are not inserted, so this does not help me very much. Do you have any other ideas how this bug in OO 2.0.4 could be circumvented? Thanks in advance. __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]