Free Support Forum -

Subtotals/Total in Aspose.words

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

We have Aspose.Total license, and we have implemented project on Aspose.Cells and generating reports using smart markers. We have also used them to populate data from DataTables.

Now, we want to implement same for Word file inputs, and want to achieve subtotals and grouping like we did in Aspose.Cells (refer attached sample of excel template).

Can we achieve same in Aspose.Words? Please let us know example code and template samples.



Hi Navnath,

Thanks for your inquiry. Aspose.Words can generate documents from templates with mail merge fields. The data from an external source like a database or file is placed into these fields and formatted, and the resulting document is saved in the folder you specify.

In your case, I suggest you to use Mail Merge with regions. Please read the details about Mail Merge with regions from here:

Hope this helps you. Please let us know if you have any more queries.