We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Text file as word document

I have app that creates text files that are saved as word documents. I am trying to use aspose word to open these files and do some formatting. When I try to open the file,it keeps saying file format not supported error.

doc = New Document("D:\Inetpub\wwwroot\vbfirn\" & "test.doc")

Is there a work around to this problem. Attached is the document that I am tryinng to open

Thanks for your inquiry. Actually your document is not a word document. It is just plain text document. You just change extension from TXT to DOC.
Best regards.