We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Create Document with MailMerge DataSource

I need to create a word document that is linked to an excel spreadsheet datasource. This doc will be saved and subsequently opened by a user in Word where they will need to be able to select merge fields from the Mailings/Insert Merge Fields button in word. Once they have added their merge fields they will save the document and another process will pick up the saved doc and programmatically perform a mail merge

Could someone point me in direction of an example of how to create a document with an excel datasource


Thanks for your inquiry. In your case, you need to use both Aspose.Cells and Aspose.Words components. You can export Worksheets to DataTable and use the exported DataTable as datasource in Mail Merge.

Exporting Data from Worksheets

In your case, please use Mail Merge with Regions. I suggest you please read following documentation links for your kind reference.

Please let us know if you have any more queries.