When saving a word document, the proofing errors are not persisted.
Code:
using (FileStream fs = File.OpenRead(Server.MapPath("/File") + "\\inputFile.docx"))
{
var doc = new Document(fs);;
doc.Save(Server.MapPath("/File") + "\\outputFile.docx");
};
In document.xml:
Expected:
<w:proofErr w:type="spellStart"/>
<w:r>
<w:t>peolpe</w:t>
</w:r>
<w:proofErr w:type="spellEnd"/>
Actual:
<w:r>
<w:t>peolpe</w:t>
</w:r>
The word peolpe is a misspell of the word people and the proofing error should persist.
Input File:
inputFile.docx (11.7 KB)
I have attached a web application that reproduces this issue.
WebApp.zip (16.8 KB)