Aspose word with docx file format

Hi,

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.

Document templateDoc = new Document("C:\temp\2007.docx");
String text = templateDoc.getText();
System.out.println(text) ;

But Aspose is throwing UnsupportedFileFormatException

Exception in thread "main" com.aspose.words.UnsupportedFileFormatException: docx
at com.aspose.words.Document.a(Unknown Source)
at com.aspose.words.Document.(Unknown Source)
at com.aspose.words.Document.(Unknown Source)

Am i missing something here?
Please find the attched 2007 docx file which I am using with this code.

-Sunil

Hi
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
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.