Re: Unknown file format


byte[] byteContent = ReadFully(receiveStream);
MemoryStream memStream = new MemoryStream(byteContent);
Aspose.Words.Document doc;
doc = new Aspose.Words.Document(memStream);

Previously we were using 14.7.0.
We are using windows XP and Visual Studio 2008.
We get Unknown File Format with the attached 'BIR NOA2.doc’
I tried to update our aspose words to 14.11.0 but still same error.

After formatting the doc to ‘BIR NOA.doc’, aspose is able to load it.
But we can not force our clients to edit their documents to a specific formatting so we are getting issues raised everytime Unknown File Format is thrown.

Hopefully you can shed some light to our issues.
Thanks

Hi JB,

Sorry, I was unable to reproduce this issue using your code and samples at my end. Both files load without any issue using the latest version. Can you please share a runnable VS2008 project to reproduce the issue?

Best Regards,

Thanks for your reply.

Sorry but I can not share my VS2008 project.

The files is encrypted using TripleDESCryptoServiceProvider.
After decryption, we use Aspose to load it but “Unkown file format” is thrown.

See attached file Sample.docx.

If I change the font or insert a new line before the 1st character, Aspose is able to load it.


JB

Hi,

Thanks for your inquiry.

While using the latest version of Aspose.Words i.e. 14.11.0, I managed to reproduce this issue on my side. I have logged this issue in our bug tracking system. The ID of this issue is WORDSNET-11190. Your request has also been linked to the appropriate issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

Best regards,

Hi,


Thanks for being patient. Our development team has completed the analysis of this issue. If you try to open this document with MS Word 2013, you will get “File Corrupted” message. After file corrupted message, MS Word 2013 tries to save the content, but Aspose.Words does not. This is a bad DOCX, and Aspose.Words just can’t recover whatever is left at the moment. Please let us know of your expectations, do you still want Aspose.Words to try to save the content?

Best regards,

@jbbernardo24,

Regarding WORDSNET-11190, we have completed the work on this issue and concluded to close this issue with “Won’t fix” status because even MS Word shows “File Corrupted” message for this document. Please see my previous post for analysis details.