在网页上嵌入可编辑的 MS Word 文档 [英] Embed editable MS Word document on web page

查看:28
本文介绍了在网页上嵌入可编辑的 MS Word 文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在只读预览中通过 ASPX/HTML 页面向我的内部用户呈现 Word 和 PDF 文档.在相关要求中,我需要通过 ab ASPX/HTML 页面向我们网络以外的各方(实际上是公众)呈现 可编辑 Word 文档.

I need to present Word and PDF documents in a read-only preview, via an ASPX/HTML page to my internal users. In a related requirement, I need to present editable Word documents, via ab ASPX/HTML page, to parties outside of our network - effectively the public.

我们不能依赖目标 PC 上可用的 Word 或 Adob​​e 类型的 PDF 插件.

We cannot rely upon Word or Adobe-type PDF plugins being available on the destination PC.

谁能建议一种方法来做到这一点?

Can anyone suggest a way to do this?

编辑 - 为清楚起见,文档/数据最好保留在我们自己的服务器上.

Edit - For clarity, the document/data would ideally stay on our own servers.

推荐答案

如何使用 Google 文档 API?您可以使用他们的类似 word 的文档或表单来获取您需要的数据,然后在内部呈现.

What about using Google Docs API? You could use either their word-like doc or a form to get the data you need, and then present that internally.

不确定这是否满足您的所有要求,或者是一个可用的选项.

Not sure if this meets all of your requirements, or is an available option.

对于我们公司,我们有一些使用 Google 文档的工具.我们会根据特定需求向他们动态上传数据.

For our company, we have a few tools that utilize Google Docs. We upload data dynamically to them for specific needs.

根据您的要求,也许最好自己编写.我还没有创建富文本编辑器.不过网上好像有不少教程.这是一个 富文本编辑器的基本教程.它使用 javascript、HTML 和 &CSS.如果你不想使用js,那么你可能需要寻找其他教程.

Based on your requirements, maybe it's best to just write your own. I haven't created a Rich Text Editor. But it looks like there are quite a few tutorials online. Here is a basic tutorial for a rich text editor. It's using javascript, HTML, & CSS. If you prefer to not use js, then you may need to look for other tutorials.

这不是最迷人的解决方案,因为看起来用户视图将是 HTML.我认为您可以使用实际的富文本视图将其动态更新到侧面(类似于 Stack Overflow 将其置于正在编写的答案或问题下方的方式).

This isn't the most glamorous solution, as it looks like the users view would be HTML. I'd think you could have it updating dynamically off to the side with an actual rich text view (similar to how Stack Overflow has theirs below an answer or question being written).

更新上周末我在探索 HTML5 的 contenteditable 属性时,我遇到了一个基于 Aloha 编辑器.这是一个所见即所得的类型编辑器.但是,如果这是您希望为客户提供的东西,那么这可能是一个非常简单的集成.我还没有使用它,但它似乎非常适合 - 如果您决定走构建自己的编辑器的路线.

Update Over the weekend I was exploring HTML5's contenteditable attribute, I came across an editor that builds off of that called Aloha Editor. It's a WYSIWYG type editor. But if that's something that you desire for your clients, than this would probably be a pretty simple integration. I have yet to use it, but it seems like it would be a great fit - if you decide to go the route of building your own editor.

这篇关于在网页上嵌入可编辑的 MS Word 文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆