Closed KRitter90 closed 5 years ago
You shouldn't pass parameters to document.Merge() one at a time. Instead, build a dictionary and pass that as your parameter.
my_parameters = {'One': 'One', 'Two': 'Two'}
document.merge(**my_parameters)
which is equivalent to:
document.merge(One = 'One', Two = 'Two')
The idea: I want to have a list of objects, that will be the input values for the document.merge() function
The test version:
The issue: I don't get an error - but I also can't see any inserted values in the MergeFields of my Word .docx template.
The question: Is there any chance to fix this?