Free Support Forum -

Template format


I am very interest in using Aspose.Words for .NET in a project. I was wondering however what is the template format that is used by Aspose to generate dynamic Word documents.

For example: what is the syntax to inject a field/table from a DB?

Is there an example somewhere, or is it possible to download an example of such a template?

Thanks a lot for your answer.

Best regards and have a nice day.

Bastian Pochon

This message was posted using Page2Forum from Aspose.Words for .NET - Documentation


Thanks for your request. Please follow this link to learn more about MailMerge feature in Aspose.Words:

Before you execute a mail merge, you need to prepare the document template. You should insert merge fields that will be replaced with values from your data source.

The template format can be any of supported by Aspose.Words. Please see the following link to learn which file formats are supported by Aspose.Words:

Data for MailMerge can come from a source in a variety of formats supported by ADO.NET. It can be DataTable, DataView, DataSet, IDataReader or an array of values. If you have your data in XML format, then you can load it into a DataSet and merge with the DataSet.

Aspose.Words also accepts ADO Recordset objects and exposes COM classes and interfaces so you can use it from within COM and scripting applications such as ASP applications.

Finally, you can implement the IMailMergeDataSource and sometimes IMailMergeDataSourceRoot interfaces to merge data from any data source including a LINQ query, XML file or business objects.

Best regards,