Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.

How to don't merge an specific mergefield #70

Open
fmariv opened this issue Sep 6, 2019 · 1 comment
Open

How to don't merge an specific mergefield #70

fmariv opened this issue Sep 6, 2019 · 1 comment

Comments

@fmariv
Copy link

fmariv commented Sep 6, 2019

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.

@fmariv fmariv changed the title Don't populate an specific mergefield Don't merge an specific mergefield Sep 6, 2019
@fmariv fmariv changed the title Don't merge an specific mergefield How to don't merge an specific mergefield Sep 6, 2019
@djayor
Copy link

djayor commented Jan 14, 2021

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants