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

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

<HTML>
<script>
varwrd=newActiveXObject("Word.Application")
wrd.visible=true
alert("您的"+wrd.Application.Caption+"安装路径为:\n"+wrd.Application.Path+"\n版本号是:"+wrd.Application.version+"\n注册使用者是:"+wrd.Application.UserName)
wrd.Documents.Add()
//wrd.Documents.Open("c:\\exam.doc")
wrd.Selection.TypeText("Thisissometext.")
wrd.Application.Activate()
wrd.ActiveDocument.SaveAs("c:\\exam111.doc")
wrd=null
</script>
</HTML>

你可能感兴趣的:(html,C++,c,C#)