html - 无法通过 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>
请在这种情况下帮助我???