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

Free Support Forum - aspose.com

Re: Mail Merge fails when the tablestart starts in one section and tableend in another section

Hi ,

i have the Same Problem in Dot net Application. Can you please Help me to Rectify the Issue Please.

Erroe Details :

Mail merge region ‘PayeeInfo’ is badly formed. TableStart and TableEnd should be in the same section, same table row or same table cell.

Note :
When i copy each and every Section in the Document to New Document Template its Working Fine.

Parthipan N

Hi Parthipan,

Following is the .NET version of the above mentioned code.

Document doc = new Document("6883464.doc");

DocumentBuilder builder = new DocumentBuilder(doc);

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

while (doc.Sections[1] != null)


//Move cursor to last paragraph of the first section


//Insert Page break


//Append content of the second section


// Remove second section



//Save output document


If you still see any issue, please share your input document and data to reproduce the issue.

Best Regards,