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

Free Support Forum - aspose.com

Converting Excel to Word issue

Hello,

I’m using your free trial of aspose cells to evaluate if aspose is a good fit to convert excel files to word. According to your documentation the conversion seems to be quite straightforward, but every docx I convert gives an error when opening on Word(Microsoft Office cannot open this file because some parts are missing or invalid). If I ignore this error (clicking OK), then I get a warning (Word found unreadable content in Book.docx. Do you want to recover the contents of this document?..) and if I click Yes then the document seems to open fine.

My code is quite simple (using v22.8 on Java):

                       Workbook workbook = new Workbook("Book.xlsx");
                        workbook.save("Book.docx");

I’m using OpenJDK 64-Bit Server VM Microsoft-31205 (build 11.0.14.1+1-LTS, mixed mode).

I also attached the files I used for one of my tests along with the resulting docx.

Strangely if I use you online converter then the resulting docx opens fine.

Can you please help?

Thank you.Book.zip (56.1 KB)

@m1tnick,

Thanks for the template XLSX file.

Please notice, I am able to reproduce the issue as you mentioned by using your template XLSX file. I noticed MS Word prompts an error “Word found unreadable content in…” when opening the converted DOCX from XLSX file by Aspose.Cells for Java into it. The file is ok after forcefully opening the file into MS Word though. I have logged a ticket with an id “CELLSJAVA-44831” for your issue. We will look into it soon.

Once we have an update on it, we will let you know.

@m1tnick,

This is to inform you that your issue has been resolved. The fix will be included in our upcoming release (Aspose.Cells v22.9) which is scheduled to be released in the second week of September 2022. You will also be notified when the next version is published.

The issues you have found earlier (filed as CELLSJAVA-44831) have been fixed in this update. This message was posted using Bugs notification tool by Peyton.Xu