I’m looking at buying your product, and tried this example from this link and there is no merging taking place…
https://docs.aspose.com/words/net/mail-merge-and-reporting/
The template file is attached, and this is the code I’m using:
private void Button1_Click(object sender, System.EventArgs e)
{
string fileTemplate = @"C:\TestPermissions\TestTemplate.doc";
string fileModified = @"C:\TestPermissions\TestModified.doc";
Aspose.Word.Document doc = new Aspose.Word.Document(fileTemplate);
// Create an array of the field names
string[] fieldNames = { "[[CustomerName]]" };
// Create an array of the field values
object[] fieldValues = { "New Name …" };
//Fill the fields in the document with user data.
doc.MailMerge.Execute(fieldNames, fieldValues);
//Save the document
doc.Save(fileModified);
}
Can you let me know if the problem is on my side?
Thanks.