如何实现检测客户端是否安装了office2000,并提示安装??

如何实现检测客户端是否安装了office2000(如:excel等),并提示安装??
---------------------------------------------------------------

下面的方法举例说明了在HTML页面里如何调用本机的应用程序MS-WORD,并把它置为编辑状态:

 1<html>
 2<script>   
 3var wrd=new ActiveXObject("Word.Application")   
 4wrd.visible=true   
 5alert("您的"+wrd.Application.Caption+"安装路径为:\n"+wrd.Application.Path+"\n版本号是:"+wrd.Application.version+"\n注册使用者是:"+wrd.Application.UserName)   
 6wrd.Documents.Add()   
 7//wrd.Documents.Open("c:\\\exam.doc")   
 8wrd.Selection.TypeText("This is some text.")   
 9wrd.Application.Activate()   
10wrd.ActiveDocument.SaveAs("c:\\\exam111.doc")   
11wrd=null   
12</script>
13</html>

下面的方法举例说明了在HTML页面里如何调用本机的应用程序MS-Excel,并把它置为编辑状态:

1<html>
2<script language="Jscript">   
3var xlApp, xlSheet;   
4xlApp = new ActiveXObject("Excel.Application");   
5xlApp.Visible = true;   
6xlApp.Workbooks.Add();   
7xlApp.Workbooks.Open("C:\\\book2.xls");   
8</script>
9</html>
Published At
Categories with Web编程
comments powered by Disqus