question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.docx files are created in "Compatibility Mode"

See original GitHub issue

My team is investigating which library to use for creating some reports in .docx format. We have noticed that this library creates documents in Compatibility Mode.

  1. Is that expected behavior?
  2. If so, what’s the reason to create them in Compatibility Mode?
  3. Is there any benefit to creating a .docx that is not in Compatibility Mode?

image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
dolanmiucommented, Feb 27, 2021

Thank you @tadmi I have implemented this, and is fixed in: https://github.com/dolanmiu/docx/pull/783

2reactions
tadmicommented, Feb 14, 2021

To disable compatibility mode, add to settings.xml in the w:settings tag:

<w:compat> <w:compatSetting w:name=“compatibilityMode” w:uri=“http://schemas.microsoft.com/office/word” w:val=“15”/> </w:compat>

Read more comments on GitHub >

github_iconTop Results From Across the Web

My document title says [Compatibility Mode] - Microsoft Support
Cause: The document was saved with compatibility mode turned on. · On the File menu, click Save As. · On the Format pop-up...
Read more >
How to Get Out of Compatibility Mode in Word - groovyPost
You might open a Microsoft Word document and see compatibility mode appear in Word's title bar. If you see this, it means your...
Read more >
How to Turn Off Compatibility Mode in Word - Klariti
How to Turn Off Compatibility Mode in Word # 2. Click File tab, Options, Save option, Save files in this format. Save as...
Read more >
How to fix "compatibility mode" in Word - The Training Lady
When a file is opened which uses an old file extension or was created in an earlier version of Microsoft Office, you will...
Read more >
What Is Compatibility Mode in Word? (With How-To Steps)
Click on the "File" button in the top left-hand corner of an open Word document. · Select the "Save as" button from the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found