When I open new file in browser using DocumentFormat.OpenXml dll, it is opening properly but when I do any change and save it. after that the I am facing below error.
First I open the doc file using DocumentFormat.OpenXml dll and after that I am converting html text to readable text but getting error. Below is my code.
Getting error on below line
XElement html = OpenXmlPowerTools.HtmlConverter.ConvertToHtml(doc, settings);
Error:
I have checked for parts while debugging i found below parts are missing when I open fresh file and after the file is saved.
- documentSettingPart
- FontTablePart
- NumberingDefinitionPart
- ThemePart
- WebSettingPart
Is that above issue is occurring because the parts are missing or anything else?

