判断ActiveX组件是否已安装

1 try
2         {
3         wdApp = new ActiveXObject("Word.Application");
4         }
5     catch(e)
6         {
7         alert("Microsoft Office Word is not installed.  Please install and try again.");
8         return;
9         }

 

posted on 2015-01-09 08:27  aoun  阅读(325)  评论(0)    收藏  举报