无法在HTML iframe上通过“ https://view.officeapps.live.com/op/embed.aspx?src=[MSG文件URL]”呈现.MSG文件

问题描述

我必须渲染一些办公文件(.doc,.ppt,.xls,.msg,.eml),这些文件是浏览器上可公开访问的文档。

我正在使用如下所示的iframe,它呈现了除邮件文件(.msg和.eml)以外的所有文档

以下3项正常工作:-(。doc,.xls,.ppt):-

<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=https://file-examples-com.github.io/uploads/2017/02/file-sample_100kB.doc' width='100%' height='500vh' frameborder='0'></iframe>

<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=https://file-examples-com.github.io/uploads/2017/02/file_example_XLS_10.xls' width='100%' height='500vh' frameborder='0'></iframe> 

<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=https://file-examples-com.github.io/uploads/2017/08/file_example_PPT_1MB.ppt' width='100%' height='500vh' frameborder='0'></iframe>

.msg不起作用:-(下面不起作用)-由于找不到文件而给出错误(但这是公共URL)

 <iframe src='https://view.officeapps.live.com/op/embed.aspx?src=https://github.com/bbottema/outlook-message-parser/raw/master/src/test/resources/test-messages/S_MIME%20test%20message%20encrypted.msg' width='100%' height='500vh' frameborder='0'></iframe>

在这种情况下请帮助我?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)