Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OfficeJS read old .doc file

I have Word Add-in that is run in Windows Word 2016. This Add-in must use Office.context.document.getFileAsync function from OfficeJs - to get and process all document content on a server side.

Issue: But sometimes I need to open old .DOC files format, then Word is running in "Compatibility Mode" and this function is failed.

Question: Can I somehow convert it to ".DOCX"format on the client side - using officejs? Or at least send ".doc" file as is, mean get a raw binary of file and send to server?

Thanks!

like image 548
Sergei Sleptsov Avatar asked Jan 22 '26 22:01

Sergei Sleptsov


1 Answers

Add-ins built with Office.js do not run on legacy file types such as .doc, .xls, or .ppt. You would need to convert the files to the new format first.

-Michael, PM for Office add-ins

like image 186
Michael Saunders Avatar answered Jan 24 '26 11:01

Michael Saunders



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!