none
Create a DOCX that is not in compatability mode RRS feed

  • Question

  • Hi;

    When we create a DOCX file, what we need to do in the DOCX so Word does not open it in compatibility mode? Note, we do not use the OpenXML SDK to create the DOCX file so we need to know what to do/not do in the file itself.

    thanks - dave


    Very funny video - Reporting as a Metaphor
    Tuesday, September 14, 2010 1:25 PM

Answers

  • Answer is put the following in settings.xml:

    <w:settings xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vm" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:sl="http://schemas.openxmlformats.org/schemaLibrary/2006/main">
     <w:defaultTabStop w:val="475"/>
     <w:compat>
     <w:compatSetting w:name="compatibilityMode" w:uri="http://schemas.microsoft.com/office/word" w:val="14"/>
     </w:compat>
    </w:settings>
    
    

     thanks - dave


    Very funny video - Reporting as a Metaphor
    • Marked as answer by DavidThi808 Thursday, September 23, 2010 7:17 PM
    Thursday, September 23, 2010 7:16 PM

All replies

  • Hi David,

    I believe, you are opening the Word 2007 document in Word 2010. If you can use Word Object Model, then you can use Convert method.

    Convert Method
    http://msdn.microsoft.com/en-us/library/bb243727(office.12).aspx

    Thanks
    Ankush


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Ankush Microsoft Online Community Support
    Thursday, September 16, 2010 9:59 AM
  • Hi;

    I believe, you are opening the Word 2007 document in Word 2010.

    It is not a Word 2007 document, it is a docx file we create in our code.

    If you can use Word Object Model, then you can use Convert method.

    We cannot use the Word Object Model because our code is Java and runs on non-Windows systems.

    What do we need to do in a DOCX file so it does not open in compatibility mode? Is there an element we need to set?

    thanks - dave


    Very funny video - Reporting as a Metaphor
    Thursday, September 16, 2010 1:03 PM
  • Answer is put the following in settings.xml:

    <w:settings xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vm" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:sl="http://schemas.openxmlformats.org/schemaLibrary/2006/main">
     <w:defaultTabStop w:val="475"/>
     <w:compat>
     <w:compatSetting w:name="compatibilityMode" w:uri="http://schemas.microsoft.com/office/word" w:val="14"/>
     </w:compat>
    </w:settings>
    
    

     thanks - dave


    Very funny video - Reporting as a Metaphor
    • Marked as answer by DavidThi808 Thursday, September 23, 2010 7:17 PM
    Thursday, September 23, 2010 7:16 PM