0

I'd like to display a Word document with tables and images on SharePoint as a web page. The Word document is updated regularly.

When I save the file as "Web Page" or "Web Page, Filtered" from Word, it displays perfectly fine when simply opened in any browser.

However, when opening the same *.HTML file from a SharePoint library, the character encoding seems to be broken, and in addition, all the images contained on the page are not displayed.

What should I do to display the Word-created HTML file correctly as a web page in SharePoint?

In the meantime, I found this:

I have not found anything like this for a more recent version of SharePoint. Are the above methods for publishing Word files as web pages still applicable to SharePoint today?

1 Answer 1

0

I would recommend using SharePoint pages for content that is primarily viewed via a web browser, pages support tables, images etc. Displaying a word document as a web page doesn't really make much sense since it's not designed for web content, it's used for documents.

9
  • Thanks for not posting answers along the lines of "what you are trying to do does not make sense". This is about a Word document that is A) updated all the time, and B) displays PERFECTLY as a web page directly in any browser -- only not in SharePoint
    – David.P
    Jun 20, 2022 at 14:25
  • Chrome or other browsers don't open docx files directly in the browser natively. You can try this yourself by going to a Word document, right click and "Open with" Chrome or any browser (it'll either prompt to download the file or ask you to open a client app). There is of course plugins and SharePoint uses Word Online to display word files in browser. Word files are not web pages, where as SharePoint pages are. Jun 20, 2022 at 15:15
  • Just stop it. It has been possible for decades to save any Word document as a web page simply and directly from Word.
    – David.P
    Jun 20, 2022 at 21:21
  • Just to clarify, at no point did I say it wasn't possible to open a Word file and then save it as a HTML file from Word. I have no idea why anyone would be doing this in 2022 however. Your Word generated HTML file will have many accessibility issues and won't comply with WCAG AA standards. Additionally, it will offer a poor experience compared to modern SharePoint pages. Jun 20, 2022 at 22:45
  • All irrelevant for the present question. There is not the slightest problem with the Word generated HTML page. Contrarily, it is displayed in total perfection in any browser without any issue. Particularly, the beauty of the approach is that you can save the document from Word as HTML by default, which keeps it fully editable in Word AND at the same time ensures that the HTML page is automatically up-to-date at all times.
    – David.P
    Jun 21, 2022 at 10:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.