打开/处理 SharePoint 等 Word 文档

发布于 2024-08-15 02:52:09 字数 271 浏览 1 评论 0原文

当涉及到使用 ASP.NET 在服务器上处理 Word 文档 (.docx) 时,有人能给我指出正确的方向吗?

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

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

或者,有没有什么好的组件可以在浏览器中读取/写入Word文档。我尝试过使用 Telerik 编辑器组件,但没有成功。

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

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

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.

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

野却迷人 2024-08-22 02:52:09

首先:关于 Sharepoint 和 Sharepoint Word:Sharepoint 使用名为 WebDAV 的协议来提供此功能。

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

我想将用户重定向到 WebDAV 服务器上的 Word 文档应该能让用户正常工作,但我对此不确定。从未真正实施过 WebDAV 解决方案。


好的编辑器:如果您有一小部分用户,您应该看看xstandard,我发现迄今为止最酷的富文本编辑器。然而它可以与 Java/ActiveX 配合使用,因此您的用户应该首先安装该组件,但它支持图像拖放等。我从未见过一个原生浏览器内编辑器可以给我带来良好的体验(Telerik 在 2 年前最接近) )。

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

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.

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.


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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文