在 Web 表单中编辑文档(DOC、DOCX、RTF、TXT)

发布于 2024-10-07 13:53:16 字数 212 浏览 0 评论 0原文

我正在使用 asp.net 3.5 开发一个 Web 应用程序。该应用程序有很多文档,例如 .doc、.docx、.rtf、.pdf、.txt 等...有时用户需要编辑这些文档。作为一个好的网络应用程序,用户需要下载文件、编辑它并再次上传到服务器。

我想知道是否有任何方法(组件)可以在网络表单中制作一个编辑器(如 MS Word),允许用户编辑文档并将其保存在服务器上?

谢谢

I'm developing a web application using asp.net 3.5. This application has a lot of documents like .doc, .docx, .rtf, .pdf, .txt, etc... and sometimes the usar need to edit this documents. As a good web application the user need to download the file, edit it and upload again to the server.

I would like to know if is there any way (a component) to make a editor (like MS Word) in webform that allow the user edit the document and save it on server ?

Thanks

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

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

发布评论

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

评论(2

南街九尾狐 2024-10-14 13:53:16

您可以使用 WebDAV 协议来实现此目的,它是 HTTP 协议的扩展,允许文档可以下载、锁定和上传,并且可以从您的 Webforms 应用程序启动。

有一个相当成熟的 .net 开源项目,您可以在 http://sourceforge 上构建您自己的实现.net/projects/webdav/ 包含示例 Webforms 项目和服务器代码(忽略关于没有源代码的评论,这是不正确的)

You can use the WebDAV protocol to achieve this, which is an extension of the HTTP protocol that allows documents to be downloaded, locked and uploaded and can be kicked off from your Webforms app.

There is quite a mature open source project for .net that you can build upon for your own implementation at http://sourceforge.net/projects/webdav/ with an example webforms project and the code for the server (ignore the comment about there not being source code it's incorrect)

又爬满兰若 2024-10-14 13:53:16

要在服务器上编辑 Office 文档,可以使用 Office Web Apps。对于业务方案,这需要 SharePoint Foundation 2010,它随 Windows Server 的许可版本免费提供。

对于非办公文档 (PDF),您需要为每个文档找到另一种解决方案,因为它们是特定于应用程序的。

For editing Office docs on a server, there is Office Web Apps. For business scenarios, this requires SharePoint Foundation 2010, which is free with a licensed version of Windows Server.

For non-office documents (PDF), you will need to find another solution for each one, since they are application-specific.

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