Detect Microsoft Office version using javascript

I need to check if the MS Office 2007 client PC is installed or not.

How can I check this with javascript?

+4
source share
4 answers

You cannot do this from a browser. The browser does not allow access to the client in javascript. It will be a gaping security hole.

Microsoft turns this around using Active X. There are other browser plugins that can do the same thing.

Javascript, however, does not work.

+5
source

You can try to do this using ActiveX. Sort of:

var word = new ActiveXObject("Word.Application"); 

and check the result of the operation.

+2
source

This is usually not possible.
However, if the client uses Internet Explorer and InfoPath (which is part of Office) is installed, you can check the user agent for InfoPath.2 . 2. Another option is to check the MS-RTC LM if they have Office Live Meeting installed.
This is very limiting, but can only work on the local intranet.

0
source

I did this using the following script:

 try{ var oApplication=new ActiveXObject("Word.Application"); if(oApplication){ document.write(oApplication.Version); if(oApplication.Version == "12.0") { document.write("office07 installed"); } } } catch( ex) { document.write(" not installed: "); document.write(ex.message); } 
0
source

All Articles