Displaying Document Library Content as HTML on SharePoint Page

sonal khatri 91 Reputation points
2024-09-09T13:37:57.36+00:00

Hello,

My requirement is to select a document from the Document Library on a SharePoint site and display the document content as HTML or as a web page on a SharePoint page.

How can I achieve this?

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,486 Reputation points Microsoft External Staff
    2024-09-10T02:01:15.83+00:00

    Hi @sonal khatri,

    If you want to display a document on a page. In SharePoint Online you can use a File viewer web part. It will show all the contents inside the file and provide basic interactions.

    User's image


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.


  2. RaytheonXie_MSFT 40,486 Reputation points Microsoft External Staff
    2024-10-04T02:59:51.1366667+00:00

    Hi @sonal khatri,

    Since fileviewer doesn't support .pptx file currently. It is highly recommended that you can raise a new ticket on feedback. Many features of our current products are designed and upgraded based on customers’ feedback. With requirements like this increase, the problem may well be released in the future. Thanks for your understanding.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.