question

SunitaJodha-1503 avatar image
0 Votes"
SunitaJodha-1503 asked RaytheonXie-MSFT commented

Display Powerpoint in SPFx

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?

office-sharepoint-online
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

RaytheonXie-MSFT avatar image
0 Votes"
RaytheonXie-MSFT answered RaytheonXie-MSFT commented

Hi @SunitaJodha-1503 ,
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.



image.png (41.4 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @SunitaJodha-1503 ,
I am checking to see how things are going there on this issue.

0 Votes 0 ·

Hi @SunitaJodha-1503 ,
If there's anything you'd like to know, don't hesitate to ask.

0 Votes 0 ·