Cannot convert docx to doc

Cannot save docx document using SaveFormat.DOC

Sample code:

Document doc = new Document(dir + file);

doc.save(dir + "out_" + file + ".doc", SaveFormat.DOC);

Attached stacktrace:

java.lang.Exception: Not expected other image formats here.
at com.aspose.words.zl.a(Unknown Source)
at com.aspose.words.zl.I(Unknown Source)
at com.aspose.words.zl.a(Unknown Source)
at com.aspose.words.mg.b(Unknown Source)
at com.aspose.words.mg.a(Unknown Source)
at com.aspose.words.ot.gm(Unknown Source)
at com.aspose.words.ot.a(Unknown Source)
at com.aspose.words.df.dx(Unknown Source)
at com.aspose.words.df.ds(Unknown Source)
at com.aspose.words.df.b(Unknown Source)
at com.aspose.words.Document.a(Unknown Source)
at com.aspose.words.Document.save(Unknown Source)
at AsposeTest.main(AsposeTest.java: 44)

The sample file attached:

Aspose words version 3.2.1

Hi

Thanks for your request. I managed to reproduce the problem on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.
Best regards,

Hi!
I am also experiencing the same problem. Any updates?

Regards,
Frode Anonsen

Hi

Thanks for your inquiry. Could you please also attach your document here for testing? I will investigate the issue and provide you more information.
Best regards,

I’ve attached a test document that experiences this error. I have narrowed it down to an issue with textboxes from Word 2007.
I’m testing with very simple code, using latest Aspose.Words (v8.0.0.0).

Document doc = new Document("Input.docx");
doc.Save("Output.doc", SaveFormat.Doc);

Thanks for looking into this!

Kind regards,
Frode

Hi

Thank you for additional information. I managed to reproduce the problem on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is fixed.
Best regards,

Hi Andrey,

Do you have any update on that issue? I tested it with Aspose Words 10.0 and problem still exists.

Best regards,

Wojtek

Hello

Thanks for your request. Unfortunately, this issue is still unresolved, and I cannot provide you any reliable estimate regarding this at the moment. We will be sure to inform you of any developments regarding this issue.
Best regards,

The issues you have found earlier (filed as WORDSNET-2788) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.