I have a document I've pulled from a database and put into a MemoryStream object. I have opened up the document and made the necessary changes, and now I want to save the document in the same format with which it was opened.
MemoryStream ms = getDocFromDatabase();
Aspose.Words.Document theDoc = new Aspose.Words.Document(ms);
//various and sundry processing
theDoc.Save(ms, ???);
I'm not sure I will know what the format should be. Is there some way to save in the same format that opened the document? There is Aspose.Words.SaveFormat.Odt, but I don't think that that is what I'm looking for. There is also Aspose.Words.SaveFormat.None, but I don't think that that is what I'm looking for. Would I parse the extension of the document and modify the save format accordingly?
Any assistance would be appreciated. Have a nice day!