Table:Start and Table:End in a table limiting to show only 20 rows

Hi there
Iam having a problem in displaying the mail merge fields table with table:start and table:end tags.
The table is displaying for only 20 rows, if the rows exceeds than 20 rows, the word document is throwing an error as corrupted word document in browser.
I need help to rectify this situation.
Regards

Hi Jagadeesh,

Thanks for your inquiry. It would be great if you please share following detail for investigation purposes.

  • Please attach your input Word document.
  • Please

create a standalone/runnable simple application (for example a Console
Application Project
) that demonstrates the code (Aspose.Words code) you used to generate
your output document

  • Please attach the output Word file that shows the undesired behavior.

Unfortunately,
it is difficult to say what the problem is without the Document(s) and
simplified application. We need your Document(s) and simple project to
reproduce the problem. As soon as you get these pieces of information to
us we’ll start our investigation into your issue.

Hi Tahir
Please find my template attached to this post.
Iam having problems when the table data is more than 20 rows. when the word document is displayed in browser it is showing an error as document corrupted. When I have less than 20 rows, it shows perfectly.
Is there any known limitations for using tablestart and tableened tags. Do I require any settings in word document when the table data flows on more than 1 page.

Thanks & regards
Jag.

Hi Jagadeesh,

Thanks for sharing the document.

*ishwar39:

I am having
problems when the table data is more than 20 rows.*

I have tested the scenario using latest version of Aspose.Words for .NET 14.8.0 and have not found any issue with output document. I have created a temporary DataTable with 100 rows and perform the mail merge operation without any issue. See the following code example.

Document doc = new Document(MyDir + "internalpaymentrequestform.docx");
DataTable table = new DataTable("IPRStudents");
table.Columns.Add("Col1");
for (int i = 0; i < 100; i++)
{
    DataRow row = table.NewRow();
    row[0] = "Test";
    table.Rows.Add(row);
}
doc.MailMerge.ExecuteWithRegions(table);
doc.Save(MyDir + "Out.docx");

*ishwar39:

when the word document is displayed in browser it is showing an error as document corrupted. When I have less than 20 rows, it shows perfectly.*

Could you please elaborate your scenario how you are showing your output document in browser?

*ishwar39:

Is there any known limitations for using tablestart and tableened tags. Do I require any settings in word document when the table data flows on more than 1 page.*

There is no such limitations for mail merge with regions. I suggest you please read following documentation link for your kind reference.
https://docs.aspose.com/words/net/types-of-mail-merge-operations/