I am evaluating Aspose Words and am happy with the VB.net example of producing multiple word documents (one record per page).
I have a requirement to produce batches of letters for multiple sites to multiple recipients into a single word document (one document per site) but can find no example to do this.
Is this possible and can you point me in the right direction as I can find no such examples?
Tony
Hi Tony,
Thanks for your inquiry. Please check the Mail Merge and Reporting code examples from here:
https://github.com/asposewords/Aspose_Words_NET
I suggest you please read following documentation links for your kind reference.
http://www.aspose.com/docs/display/wordsnet/About+Mail+Merge+in+Aspose.Words
http://www.aspose.com/docs/display/wordsnet/How+to++Execute+Simple+Mail+Merge
http://www.aspose.com/docs/display/wordsnet/How+to++Execute+Mail+Merge+with+Regions
If you still face problem, please manually create your expected Word document using Microsoft Word and attach it here for our reference. We will investigate to how you want your final Word output be generated like. We will then provide you more information on this along with code.
Hi Tahir,
Thanks for your reply, I have looked at the links provided, but this does not give what I need.
I have attached the code used from your samples, the database and word template used, plus the 2 output files that I am trying to create (one file per Business Unit).
Any suggestions / help appreciated.
Regards
Tony
Hi Tony,
Thanks for sharing the detail. Please use MailMerge.Execute method (DataTable) to perform mail merge from a DataTable into the document to get the required output. Please check the overloaded method of MailMerge.Execute method from here:
http://www.aspose.com/docs/display/wordsnet/Execute+Method
Hi,
Thanks for referring back to me.
Unfortunately this product is not going to work for me, I do not want to be in a position to have to write a custom wrapper each time I want to create a batch of letters into a single document, it appears I will need to stay with Word Automation.
Regards
Tony
Hi,
I am sorry but this does not help, I am using VB.NET and Access Database, I need to be able to generate all records to a single document (which is the default behaviour in MS Word)
You have a VB.NET example using this source included in the demo files, but creating individual documents - how does the above fit within that?
Regards
Tony
I have now resolved this so no reply required.
Hi Tony,
Thanks for your feedback. It is nice to hear from you that your issue has been resolved. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.