替代方案ActiveX对象 [英] Alternative for the ActiveX object

查看:1299
本文介绍了替代方案ActiveX对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要打开一个微软Word文档(文档/ DOCX),那么需要编辑和itsetf.forthat我使用的ActiveXObject和javascript.it工作正常的IE将其保存在客户端,但它不是在其他浏览器的工作( Chrome浏览器,火狐)。

I need open a ms word document (Doc/Docx) then need to edit and save it in client side itsetf.forthat i'm using ActiveXObject and javascript.it is working fine with IE but it's not working in other browsers(Chrome,Firefox).

                var w = new ActiveXObject('Word.Application');
                w.Visible = true; 
                obj = w.Documents.Open("D:\\test.docx");
                docText = obj.Content;
                w.Selection.TypeText("Hello world!");
                w.Documents.Save();

什么是ActiveX对象的其他浏览器不包括替代IE(OR)的我如何可以通过使用客户端脚本为Chrome,火狐编辑Word文档(文档/ DOCX)

推荐答案

短版,你不能。

ActiveX是一种礼仪IE /微软的技术,并且只能在IE浏览器依靠。

ActiveX is a propriety IE/Microsoft technology, and can only be relied on within IE.

是否有其他途径可以去了吗?

Are there other avenues you can go down?


  • 创建为每个浏览器的浏览器插件。

  • Office 365的?

这篇关于替代方案ActiveX对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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