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 to don't merge an specific mergefield #70

Open fmariv opened 5 years ago

fmariv commented 5 years ago

I'd like to merge some mergefields but not all of them. I mean, I want to merge some mergefields executing one python script and then merge the ones that remains executing a different python script. When I try that, the mergefields that I didn't wanted to merge disappear and I can't execute a different python script to merge them.

Is it possible to do? My Python version is 3.7.4 and the docx-mailmerge version is 0.4.0.

djayor commented 3 years ago

I was looking exactly for the same solution for this. @fmariv did you solve it somehow?

I try to comment lines that replace the remaining merge fields with empty values but turns the docx corrupt to read.