Free Support Forum - aspose.com

Mail Merge does not work with Aspose Words 3.5

Hi,

I use Mail Merge feature to prepare the template with Aspose Word 5.1 and it is working perfectly, but when I use the same code but use the Aspose Word 3.5.1, it does not work.

Here is my code:

public void ExecuteWithRegionsDataTable(DataTable dt, Aspose.Words.Document master, string strDataTableName)

{

// The table name property should be set to match the name of the region defined in the document.

dt.TableName = strDataTableName;

master.MailMerge.ExecuteWithRegions(dt);

}

and the template in attached file.

Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. Most probably there was some issue that is already fixed. So I can only suggest you to use the newest version of Aspoose.Words.

Best regards.