打开/处理 Word 文档,如 SharePoint [英] Open/handle Word documents like SharePoint

查看:43
本文介绍了打开/处理 Word 文档,如 SharePoint的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用 asp.net 在服务器上处理 Word 文档 (.docx) 时,有人能指出我正确的方向吗.

Could anyone point me in the right direction when it comes to handling Word documents (.docx) on the server using asp.net.

我知道我可以使用提供的 API 写入和读取 .docx 文档.

I know I can write to and read the .docx document using the API provided.

但我想像 SharePoint 那样实现它.用户浏览网站,登录,然后选择在文件夹中新建一个 Word 文档,然后 Word 文档下载并在本地打开.然后我希望用户能够将文档保存回服务器.

But I would like to implement this like SharePoint does it. The user browses the web site, he is logged in, then chooses to make a new Word document in a folder, then the Word document downloads and opens locally. Then I would like the user to be able to save the document back to the server.

或者,有没有什么好的组件可以在浏览器中读/写 Word 文档.我曾尝试使用 Telerik 编辑器组件,但没有任何运气.

Alternatively, is there any good components for reading/writing Word documents in the browser. I have tried using the Telerik editor component without any luck.

推荐答案

第一:关于 Sharepoint &Word: Sharepoint 正在使用一种称为 WebDAV 的协议来提供此功能.

First: About Sharepoint & Word: Sharepoint is using a protocol called WebDAV to provide this.

Afaik 是 IIS(安装 Windows 组件)中包含的标准协议 WebDAV.Windows 可以与 WebDAV 通信,就像它是某个安装的驱动器一样,因此 Word 可以处理从那里提供的 .doc 文件.要与来自 ASP.NET 的 WebDAV 实例通信,您可以使用 http://www.independentsoft.de/webdav/index.html.

Afaik is WebDAV a standard protocol included with IIS (Install Windows Components). Windows can talk with WebDAV like it's some mounted drive, and therefore Word can handle .doc files that are served from there. To communicate with the WebDAV instance from ASP.NET you can use http://www.independentsoft.de/webdav/index.html.

我想将用户重定向到 WebDAV 服务器上的 Word 文档应该会让它为用户工作,但我不确定这一点.从未真正实施过 WebDAV 解决方案.

I guess redirecting the user to the Word doc on the WebDAV server should get it working for the user, but I'm not sure about that. Never actually implemented a WebDAV solution.

好的编辑器:如果你的用户群很小,你应该看看 xstandard,我发现这是迄今为止最酷的富文本编辑器.然而它适用于 Java/ActiveX,所以你的用户应该首先安装该组件,但它支持图像拖放等.).

Good editor: If you have a small set of users, you should have a look at xstandard, I found that by far the coolest rich text editor available. Yet it works with Java/ActiveX, so your users should install the component at first, but it supports image drag-drop etc. I have never seen a native in-browser editor that gives me a good experience (Telerik came closest 2 years ago).

这篇关于打开/处理 Word 文档,如 SharePoint的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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