替代Java小程序来启动Microsoft Office应用程序 [英] Alternatives to Java applet to launch Microsoft Office applications

查看:102
本文介绍了替代Java小程序来启动Microsoft Office应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们的Web应用程序,我们习惯使用的Java小程序来调用MS。 Office应用程序如Word打开,编辑和保存文件到服务器。

In our web application, we used to use a Java applet to invoke MS. Office applications e.g. Word to open, edit, and save back a file to the server.

谷歌浏览器将不再支持NPAPI,所以很快我们不能再运行我们在Chrome的小程序。加,似乎MS。 Edge是不是愿意支持Java。

Google Chrome will no longer support NPAPI, so soon we can not run our applet in Chrome anymore. Plus, it seems that MS. Edge is not willing to support Java.

因此​​,对于为Java小应用程序的替代的任何建议。我们想为用户相同的体验,就像以前一样:我们不希望在浏览器中打开文件,或者至少尝试和以前一样给用户相同的体验,这意味着一个整洁的编辑器编辑/保存他/她的档案。

So, any suggestions for an alternative for the Java applet. We want to make the same experience for the user, just like before: we do not want to open the files in the browser, or at least try giving the user the same experience as before, meaning a neat editor to edit/save his/her file.

我也尝试HTML5的特性如文件系统API。但是,事实证明,我认为至少是功能无法帮助我。 (据我所知,也许我失去了一些东西)

I have also tried Html5 features e.g. FileSystem API. But, it turned out to me that at least that feature cannot help me. (to my knowledge, maybe I am missing something)

摘要:如何启动客户端应用程序如女士。使用JavaScript / HTML5没有任何小程序的Word / ActiveX技术?

Summary: How to launch client applications e.g. MS. Word using Javascript/Html5 without any applets/activeX?

推荐答案

这就是我的理解是你想要的方式使用特定的应用程序(MS Word中?),打开一个文件,然后当用户保存文件它会自动更新到服务器?

From what I'm understanding is you want a way to open an a file using a specific application (MS Word?) and then when the user saves the file it is automatically updated to the server?

您可以通过将文件存储为一个临时文件,如果文件每隔几秒钟自动改变检查实现这一目标。

You can achieve this by storing the file as a temporary file and automatically checking if the file has changed every few seconds.

这可以通过一个实时的JavaScript框架,如要的NodeJS实现。
应用程序启动可以用下面的满足:
https://msdn.microsoft.com/en-us/库/ aa767914(VS.85)的.aspx

This can be achieved using a real-time javascript framework such as NodeJS. The application launch could be met using the following: https://msdn.microsoft.com/en-us/library/aa767914(VS.85).aspx

或许直接< A HREF =文件:// C:/path/to/temp/word.docx> Word和LT; / A>
会工作。

Or perhaps a direct <a href="file://C:/path/to/temp/word.docx">Word</a> would work.

这篇关于替代Java小程序来启动Microsoft Office应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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