Dear mr./ms./mrs.,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
We have a question regarding the use of a prepared MailMerge MS-Word document. We have attached the zipped MS-Word document and a datafile (Wfimdeb.ccc).
In case you want to use it please extract it in C:\temp so the datafile can be found by MS-Word.
While creating we selected * from a rtf text file named Wfimdeb.ccc (see attached document), put some MailMerge fields in the document and we have saved the document.
When you open the MS-Word document in MS-Word you are able to preview the data, because the datafile (.ccc) has been used while creating the MS-Word document and the data in that file will be used when the mailmerge is started (in MS-Word).
However when we open the document with the Aspose.Words.Document class we are not able to change the mailmerge data before mailmerging it. Only during the mailmerging it can be changed but then the document is mailmerged and cannot be edited anymore (like before the MailMerge was started)
So instead of executing the actual mailmerge (with Document.MailMerge.Execute() ) we wish to already put the data in the document and then save it again.
This would be something like: Document.MailMerge.DataSource = MyDataRow
Then we save the MS-Word document and when we open it will contain the data from the DataSource.
Please inform me if this is possible or how to achieve this.
CarWise Information Services
Almere, The Netherlands.