Hi,
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);
Regards
David