You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
File opens in compatibility mode on Microsoft® Word for Mac #1543
If you just open a new document in Word 2016 and save it as "my-blank-starting-template.docx" that should do the trick when combined with this difference in creating the initial document. Of course the name can be whatever you want, as long as it matches what you put in the code and it exists at the path you specify.
Activity
scanny commentedon Feb 23, 2026
By default,
python-docxuses its "built-in" blank template .docx file. Since that was created a while ago now, it could cause issues like this. The solution is to create your own blank "starting" document/template file and create documents starting with that: https://python-docx.readthedocs.io/en/latest/user/documents.html#really-opening-a-documentLike:
If you just open a new document in Word 2016 and save it as
"my-blank-starting-template.docx"that should do the trick when combined with this difference in creating the initial document. Of course the name can be whatever you want, as long as it matches what you put in the code and it exists at the path you specify.