Display Powerpoint in SPFx

Sunita Jodha 21 Reputation points
2021-09-17T12:27:24.603+00:00

Can we display PowerPoint using SPFx(React based web part) solution.
Please suggest any NPM plugin. for the same.
If not then, there is one OOB File viewer web part available. Can we integrate that into our SPFx web part?

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,565 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 30,906 Reputation points Microsoft Vendor
    2021-09-20T02:05:04.843+00:00

    Hi @Sunita Jodha ,
    As far as I know,there is no such way to display Powerpoint in spfx. But we can integrate a webpart into spfx project.
    Open the existing directory structure containing spfx in the command promp and run the following cmdlet.

    yo @microsoft/sharepoint  
    

    The yeoman generator again, fill up the details like webpart name, desc etc and it will automatically detect, handle and add the new webpart to the existing solution.
    Then we will get two web parts like following. And we can display OOB File viewer in webpart2
    133380-image.png


    If an 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.