简体   繁体   English

在网络浏览器中查看 pptx 文件

[英]View pptx file in web browser

I want to view pptx files in web browser that i have uploaded on a location using .net core.我想在 Web 浏览器中查看我使用 .net core 上传到某个位置的 pptx 文件。

http://stepupsolution.com/PPTViewer/MonitorPPT1.pptx (approx 40 mb) http://stepupsolution.com/PPTViewer/MonitorPPT1.pptx (约 40 mb)

http://stepupsolution.com/PPTViewer/MonitorPPT2.pptx (approx 4 mb) http://stepupsolution.com/PPTViewer/MonitorPPT2.pptx (约 4 mb)

When i am trying to view both the file using the below code, I can see the MonitorPPT2 file but when i am trying to open MonitorPPT1 file it shows me error "The file specified is larger than what the Office Viewers are configured to support."当我尝试使用以下代码查看这两个文件时,我可以看到 MonitorPPT2 文件,但是当我尝试打开 MonitorPPT1 文件时,它显示错误“指定的文件大于 Office 查看器配置支持的文件。”

<iframe src='http://view.officeapps.live.com/op/view.aspx?src=http://stepupsolution.com/PPTViewer/MonitorPPT1.pptx' width='900px' height='600px' frameborder='0'></iframe>

I have also tried and able to embed the pptx file using one drive for single file, but again my requirement is to display all files from a folder on my screen as a link and when i click, it should open in next window tab.I am getting stuck to communicate with one-dive folder using ms graph.我也尝试过并且能够使用一个驱动器为单个文件嵌入 pptx 文件,但我的要求是将屏幕上文件夹中的所有文件显示为链接,当我单击时,它应该在下一个窗口选项卡中打开。我被困在使用 ms graph 与 one-dive 文件夹进行通信。

Can anyone help me to communicate with one drive or any way to embed the large size pptx file with website?.任何人都可以帮助我与一个驱动器进行通信或以任何方式将大尺寸 pptx 文件嵌入网站吗?

I think a quick solution would be to upload the powerpoint files to your server, and then set up a simple webpage with links to download them.我认为一个快速的解决方案是将 powerpoint 文件上传到您的服务器,然后设置一个带有链接的简单网页来下载它们。 Make sure to also include a link to download the freely available Powerpoint Viewer 2003 (from Microsoft) for those who may not have Powerpoint.确保还包含一个链接,供那些可能没有 Powerpoint 的人下载免费提供的 Powerpoint Viewer 2003(来自 Microsoft)。

You may also want to show the file size of each .ppt file (possibly to the right of the download link for each file) as a courtesy to your users.您可能还想显示每个 .ppt 文件的文件大小(可能在每个文件的下载链接的右侧),以方便您的用户。

By the way, sliderocket.com 4 is a web-based Powerpoint competitor with share and embed capabilities that you may want to look into.顺便说一下,sliderocket.com 4 是一个基于 Web 的 Powerpoint 竞争对手,具有您可能想要研究的共享和嵌入功能。 It's in beta and free at the moment.目前处于测试阶段且免费。

Hope this helps.希望这可以帮助。

Generally, PPTX files aren't showing directly on Web Page.通常,PPTX 文件不会直接显示在网页上。 So I suggest first convert PPTX to PDF and then show PDF file using iframe.所以我建议先将 PPTX 转换为 PDF,然后使用 iframe 显示 PDF 文件。 If fulfill your requirements.如果满足您的要求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM