Free Support Forum - aspose.com

Aspose word with docx file format

Hi,<br><br>I am trying to extract text out of docx file using Aspose word for Java version 2.4.1. Following is the code for that.<br><br>        <br>        Document templateDoc = new Document("C:\\temp\\2007.docx");<br>        String text = templateDoc.getText();<br>        System.out.println(text) ;<br>But Aspose is throwing UnsupportedFileFormatException<br>Exception in thread "main" com.aspose.words.UnsupportedFileFormatException: docx<br>    at com.aspose.words.Document.a(Unknown Source)<br>    at com.aspose.words.Document.<init>(Unknown Source)<br>    at com.aspose.words.Document.<init>(Unknown Source)<br><br><br>Am  i missing something here?<br>Please find the attched 2007 docx file which I am using with this code.<br><br>-Sunil<br><br><br>

Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your interest in Aspose.Words for java. Current version of Aspose.Words for java supports export to DOCX format only. So you can save your document in DOCX format but can’t open DOCX documents. Ability to open DOCX will be implemented later.

Best regards.

Thanks for the response.

It little strange that it works only from one side, since file generated by our application using aspose can’t be processed back.
It is very critical feature for our application, can tell me some approximate timeline when this feature will be avaiable?

-Sunil

Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Import and Export of the same format are completely different and independent modules in Aspose.Words. Export usually appears first in Aspose.Words release, followed by import in a few months. So I think DOCX import will be available in Aspose.Words for java within few months.

Best regards.