Error : Unknown file format.
Details : Aspose.Words.UnsupportedFileFormatException: Unknown file format.
at Aspose.Words.Document.x5d4db34d48fb3129(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
at Aspose.Words.Document.x5d95f5f98c940295(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
at Aspose.Words.Document..ctor(Stream stream, LoadOptions loadOptions)
at Platformplus.Interfaces.Word.WordDocument.SaveTextAsDoc(String FileName, String HTMLDocumentText, SaveFormat DocumentSaveFormat) in C:\Development\components\Platformplus.Class\Interfaces\WordInterface.vb:line 340
at Platformplus.ClientSendLetter.btnSaveLetter_Click(Object sender, EventArgs e) in C:\Development\platformplus\Controls\ClientSendLetter.ascx.vb:line 567
Target Site : Void x5d4db34d48fb3129(System.IO.Stream, Aspose.Words.LoadOptions)
Code
Dim Stream As New System.IO.MemoryStream(Text.ASCIIEncoding.Default.GetBytes(HTMLDocumentText))
Dim LoadOptions As New Aspose.Words.LoadOptions()
LoadOptions.LoadFormat = LoadFormat.Docx
Dim NewDoc As New Aspose.Words.Document(Stream, LoadOptions)
NewDoc.Save(FileName, DocumentSaveFormat)