I'm using Spire.Doc library v 4.6.28 and trying jsut open this file and save it with this code:
- Code: Select all
_document.LoadFromStream(stream, FileFormat.Docx2010);
_document.SaveToStream(anotherStream, FileFormat.Docx2010);
Result:
dropbox.com/s/f3p3k8tor4m1i02/Offerte.docx
Output file successfully opens in Desktop version of word, but can be opened in SharePoint Word Web App only for read. I asked Microsoft support about this issue and got this comment:
If you look at the footer, more specifically footer2.xml (with relationship rId2), then you'll notice that the first run in the first paragraph is a pict object with anchorId 045A6829. The first child of this pict is a XML shape containing a textbox. More importantly, however, the shape defines a type ("#_x0000_t202) but not an ID. If all of your shapes in the document had IDs then the file will open correctly.
So i think that Spire.Doc library deletes ids of textboxes in the footer of docuement and that's why I can't open it in Word Web App.