简体   繁体   English

在网页上阅读Word / .docx文档

[英]Read Word/.docx Documents on a webpage

Is there a way to show a view of a Word or Excel inside an HTML page? 有没有办法在HTML页面内显示Word或Excel的视图?

I found JSviewer , but this requires the document to be converted into a OpenDocument Format , which doesn't work for me. 我找到了JSviewer ,但这需要将文档转换为OpenDocument Format ,这对我不起作用。

I have a document (let's say .docx) stored in an S3 bucket, and I just want to show a view of the document – I don't want to edit the current document or even copy/paste content. 我有一个存储在S3存储桶中的文档(比如说.docx),我只想显示该文档的视图–我不想编辑当前文档,甚至不想复制/粘贴内容。 I just want to show it on the HTML page. 我只想在HTML页面上显示它。

So I have the URL like this: 所以我有这样的URL:

https://s3.amazonaws.com/example//example.docx

And I just want to show it like this: 我只想这样显示:

<iframe src="https://s3.amazonaws.com/example//example.docx"></iframe>

But for obvious reasons, this only makes the browser download the file. 但是出于显而易见的原因,这只会使浏览器下载文件。

I've Googled it extensively for the past few hours, but I can't find anything. 在过去的几个小时中,我已经对其进行了广泛的Google搜索,但找不到任何内容。

Is there any solution for this? 有什么解决办法吗?

您可以引用ActiveX控件名称“ DSOFramer”,但是Microsoft的官方下载无效,请寻找其他人,祝您好运。

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

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