Hi @mc ,
At present we can't directly render the Word Documents on the web page, and as far as I know, there are no client-side libraries that currently exist for rendering them either.
As a workaround, you could upload the word file to OneDrive or Google, then, use Microsoft Office viewer or Google Docs Viewer to render the Word document, then get the shared link. After that you can display the word document using an <iframe>
tag.
You could follow the following steps:
- Upload the word file to OneDrive.
- Choose the word file => click the "View" tab=> and select the "Reading View" option.
- Click the "More" icon, and then choose the "Embed" option,
- Copy the "Embed" code, and paste it in your web page, the code as below:
- The result as below:
Reference: How do I render a Word document (.doc, .docx) in the browser using JavaScript?
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Dillion