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

Free Support Forum - aspose.com

Editing existing table in a Doc

Hi there,

I have a Word template which I want to edit with some information from my db. I use tags for this in the template, and then replace them with its correspondent fact. The Word template is like an invoice, there's no problem with the personal data or particular information, but the thing is, I have a table for some breakdowns, and I can't fill it with tags, as I don't know how many rows I'll get from my query.

So, i'd like to know if there's any way to access to a table that's already created in a Word template and fill it, or I have to create it while I'm receiving information from the query.

Any help would be much appreciated!
Thanks in advance!!


Thank you for your explanation. If I understand correctly you can use mail merge with regions to achieve what you're looking for. Please see the link below for information.


If you insert the StartTable, EndTable tags in a row then the table will automatically grow with each of the data inserted from the database.

Here are the links to the code to implement this below.

If you are using .NET:


Or if you are using Java:


If this is not what you are trying to do then can you please provide further information and prehapes attach your document here as an example for testing.


Thank you very much, it finally worked!!