Hi
Thanks for your request. This occurs because your DataSet contains two tables. One field is stored in firs table and two fields are stored in second one. When you execute mail merge you have the following code in the beginning of MergeField event handler:
if ((e.FieldValue == null) || (e.FieldValue.ToString().ToUpper() == "NULL"))
{
e.Text = "";
return;
}
And this code does not allow processing the second table (When you start processing of the second table the template document already does not contain any merge fields.). There is very simple solution – Try using the following code:
if ((e.FieldValue == null) || (e.FieldValue.ToString().ToUpper() == "NULL"))
{
return;
}
Best regards.
Alexey Noskov
Developer/Technical Support
Aspose Auckland Team