In order to reproduce follow these steps:
* Create a new template (T.dotx) and change the font of the normal (and any other style)
* Create a new document (Doc.docx) from this template and add some text using these new styles
Now run the following code;
var doc = new Document(@“Doc.docx”);
If you open Out.docx everything is fine.
But if you first rename or delete the original template (T.dotx) and then open Out.docx the file is missing all the style changed.
The original document (Doc.docx) still keeps the original style changes despite the template no longer being there because the latest styles were saved with the document by Word; this is the expected behaviour.
The issue does not exist if the code above is run after renaming/deleting the template.