How do I render a Document (.doc, .docx, .csv, .xls, .xlsx) in the browser using JavaScript? - Stack Overflow

PHOTO EMBED

Fri Jul 22 2022 19:08:21 GMT+0000 (Coordinated Universal Time)

Saved by @kalehm

if you only need to display the Document, but don't need to edit it, you can use Google Documents' Viewer via an <iframe> to display a remotely hosted .doc/.docx.

<iframe src="https://docs.google.com/gview?url=http://remote.url.tld/path/to/document.doc&embedded=true"></iframe>
content_copyCOPY

https://stackoverflow.com/questions/27957766/how-do-i-render-a-word-document-doc-docx-in-the-browser-using-javascript