在客户端PC上启动MS Word以在服务器上编辑文档 [英] Launch MS Word on Client PC to Edit Document on Server

查看:174
本文介绍了在客户端PC上启动MS Word以在服务器上编辑文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个运行在服务器上的Web应用程序(PHP),该服务器承载了多个 DOCX 文档( MS Word 文档)

I have a web application(PHP) running on a server which hosts several DOCX Documents (MS Word documents)

我希望用户(使用我的应用程序)在选择任何文档后能够:

I want the user (using my application) after choosing any document to be able to:

  • 使用安装在其PC上的Microsoft Word打开文档
  • 查看文档并进行编辑.
  • 保存他的工作,并且更改必须提交给服务器.

有人可以帮我怎么做吗

即.

  • 通过JavaScript在客户端PC上插入MS Word
  • 知道用户何时在其PC上关闭MS Word应用程序
  • 在编辑文件之前是否需要下载文件,或者我可以进行远程编辑?

预先感谢

推荐答案

您可以使用办公室URI方案.这将允许您自动打开文件.

You can launch Office applications using Office URI Schemes. This would allow you to automatically open the file.

如果要避免在本地下载文件,则需要实施 WebDav 处理请求.

If you want to avoid downloading the file locally, you'll need to implement either WOPI or WebDav on your backend to handle the requests.

一个更简单的解决方案是使用 Microsoft Graph 将文件推送到一个驱动器. OneDrive中的文件具有WebUrl属性,该属性为您连接Office中的打开文档.

A simpler solution would be to use Microsoft Graph to push the file into OneDrive. Files in OneDrive have a WebUrl property which wires up opening documents in Office for you.

这篇关于在客户端PC上启动MS Word以在服务器上编辑文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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