I an having a problem loading a file in wordml format and saving it as a word document using the aspose.words Document. The code below should load the document (attached as doc file.txt into the string finalOutput) and save it to a stream as a doc. The result is a word file that only has 1 page and it’s empty which is wrong.
MemoryStream docStream = new MemoryStream();
MemoryStream wordMLStream = new MemoryStream(Encoding.UTF8.GetBytes(finalOutput));
Document wordDocument = new Document(wordMLStream, null, LoadFormat.WordML, null);
wordDocument.Save(docStream, SaveFormat.Doc);
This document DOES load correctly into word 2007. It uses the Office 2006 schema. the package is part of the way word versions beyond 2003 deal with embedded images etc.
The file is saved with the Word XML option in word 2007 rather than the compatibility Word 2003 XML format.
Can we confirm therefore that ASPOSE is compatible only with the WordML formats as of 2003
Thanks for your request. The latest version of Aspose.Words supports both Word 2003 and Word 2007 schema. You can download the latest version of Aspose.Words from here:
Please see the following link for more information: