Bouke / docx-mailmerge

Mail merge for Office Open XML (docx) files without the need for Microsoft Office Word.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I combine merge_template with merge_rows?

lucaspon opened this issue · comments

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!

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 :)