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

Add support to docm files #94 #95

Open EmanueleCannizzaro opened 3 years ago

EmanueleCannizzaro commented 3 years ago

Expected Behavior

It seems that a very small change to the main python file can allow the script to deal with macro enabled word file format.

Current Behavior

Today the .docm file are not usable.

Possible Solution

It consists of ... CONTENT_TYPESPARTS = ( 'application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml', **'application/vnd.ms-word.document.macroEnabled.main+xml',_** 'application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml', 'application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml', ) ...

Initial tests suggest that change is sufficient to get most of the tests to process .docm files.

Steps to Reproduce (for bugs)

Context

I saved the projects docx files as .docm and tested the impact of the modification.

Your Environment

EmanueleCannizzaro commented 3 years ago

Can someone please explain me how to perform the required check?

EmanueleCannizzaro commented 3 years ago

Add support to docm files #94