Bouke / docx-mailmerge

Mail merge for Office Open XML (docx) files without the need for Microsoft Office Word.
MIT License
273 stars 104 forks source link

How can I combine merge_template with merge_rows? #79

Open lucaspon opened 4 years ago

lucaspon commented 4 years ago

I have a document with many pages, and in each page there is a table that needs to be filled in.

I noticed that document.merge_template works fine for specific fields, but doesn't work for tables with multiple rows like document.merge.

Is there a way around this? Perhaps a for loop?

Thanks in advance for any help!

cameronstubber commented 4 years ago

Hi Lucas,

It actually does work with tables, I have just got it going now. There is however a bug which if you have a blank table, it seems to get replaced with one of the other merge templates table rows instead.

I'm going to put a bug report in for that now, not that I am optimistic it will ever get solved :)