Xml entries for "Automatically update document styles" for docx files

Anonymous
2019-03-07T21:46:00+00:00

Hi all

does anyone know the related xml entries for "Automatically update document styles" for docx files? 

Must be at the xml level without opening the document and not at the application level. Thanks!

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Anonymous
    2019-03-13T17:53:29+00:00

    I found the "linkStyles" on "word/settings.xml" controls this option. However, simply deleting that entry to disable the option will cause some kind of unknown data dependency loss. 

    Anyone who know how to properly do this (again, application level using Interop or OpenXml is not an option)? 

    Thanks

    0 comments No comments
  2. Anonymous
    2019-03-14T00:45:34+00:00

    What is the value of the setting in the xml file? Rather than deleting it, you should change its value from True to False or 1 to 0 depending on what format it uses.

    1 person found this answer helpful.
    0 comments No comments
  3. Doug Robbins - MVP - Office Apps and Services 321.8K Reputation points MVP Volunteer Moderator
    2019-03-14T02:42:25+00:00

    In a test that I just performed here, the difference between a document in which the "Automatically update document styles" box was checked and the same document where it was unchecked, was the presence in the former of the xml statement in the word\settings.xml file of 

     <w:linkStyles/>

    If I deleted that xml statement and then re-zipped the file and changed the extension back to .docx, it was possible to open the file without any error message appearing and on going to the Templates tab of the Templates and Add-ins dialog, the "Automatically update document styles" box was unchecked

    In another test, with a document in which the "Automatically update document styles" box was unchecked, if I added

     <w:linkStyles/>

    into the settings.xml file and then rezipped the file and changed the extension and opened that file, he "Automatically update document styles" box was checked.

    I do not know why ChangSun23 was getting some kind of unknown data dependency loss, but it definitely appears that the presence or otherwise of

     <w:linkStyles/>

    is what controls the settings for "Automatically update document styles".

    2 people found this answer helpful.
    0 comments No comments
  4. Jay Freedman 205.2K Reputation points Volunteer Moderator
    2019-03-14T18:47:29+00:00

    What is the value of the setting in the xml file? Rather than deleting it, you should change its value from True to False or 1 to 0 depending on what format it uses.

    Andrew, I tried the same sort of tests as Doug described, with the same results, but I also tried entering 

    <w:linkStyles=0/>

    When that was re-zipped into the document, it caused a syntax error message and the document failed to open.

    0 comments No comments