Show Row Count in Word Mail Merge

I have a word document with mail merge fields from a table in a dataset. Data fields are merged correctly.

But how to show the total count of records in that table? For example, if table has 10 records I want to show 10 on the word document. Is there a special mail merge filed for this?

Thanks

@coolioo,

You can count number of rows in Table before mail merge. You can also bookmark that table. And after mail merge, get the Table by using bookmark and count the rows again to know the difference.

However, to ensure a timely and accurate response, please ZIP and attach the following resources here for testing:

  • Your simplified input Word document
  • Sample XML file containing the data to build report from
  • Aspose.Words 18.8 generated output DOCX file showing the current output
  • Your expected DOCX Word document. You can create expected document by using Microsoft Word.

As soon as you get these pieces of information ready, we will start investigation into your scenario and provide you more information. Thanks for your cooperation.