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

Free Support Forum - aspose.com

Mail-merge generate with duplicate pages document

Hello Support Team,

When we are trying to do merge With Execute with multiple rows it will create the same number of duplicate pages.
Here the sample project: https://drive.google.com/file/d/109FRnPTFGJJKdNqt1RtI7avZSN--VdpI/view?usp=sharing

Thanks,

@NanduNairSigma,

Your template Word document contains a region (TableStart:MasterInvoiceItem <> TableEnd:MasterInvoiceItem). To process the mergefields contained inside this region, please use t.MailMerge.ExecuteWithRegions(dv.Table) inside MergeWithExecute method. And also specify the table name like dt.TableName = "MasterInvoiceItem" inside ListSectionsForLayout method. Please also refer to the following article: