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

Free Support Forum - aspose.com

Retrieve Review Comments from MS Word Document (DOCX File) using Java - 97-2003 & 2010 Formats

Hi, I am trying to retrieve review comments from MS-Word document(.docx format) using aspose.words.jdk16-7.0.0 jar file. It is working fine with MS-Word 97-2003 document. But it is giving the following exception for MS-Word 2010. The exception:


aspose.words.UnsupportedFileFormatException: Unknown file format.
    at com.aspose.words.Document.b(Document.java:1271)
at com
.aspose.words.Document.a(Document.java:1152)
at com
.aspose.words.Document.<init>(Document.java:149)
at com
.aspose.words.Document.<init>(Document.java:126)
at RetrieveComments.main(RetrieveComments.java:18) 
and my code is, 
	Document document = new Document(“D:/myDoc.docx”);   //Line 18
Can anybody help me regarding this?

Hi,

Thanks for your inquiry.

I am not able to reproduce the reported issue on my end using the latest version of Aspose.Words for Java v13.1. The reason for such a behaviour could be that aspose.words.jdk16-7.0.0 have had some issues in loading MS-Word document(.docx format) which are fixed in later releases. I would suggest you to please upgrade to the latest version of Aspose.Words for Java v13.1. You can download it from the following link:

Hope this helps. Please feel free to ask if you have any more queries.

A post was split to a new topic: com.aspose.words.UnsupportedFileFormatException: Aspose.Words for Java