Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,

I have requirement of finding the Excel installed version of Client machine using JavaScript.

Requirement:
I am generating some excel reports. i want to change the excel extension based on Excel version installed in the client machine.

Is there any way to find which version of MicroSoft Excel is installed in client machine. [Not the Server machine.]
Please let me know how to do that.

Thanks in Advance.
Posted

1 solution

You need to write Javascript
JavaScript
var Excel = new ActiveXObject("excel.application");  //Create EXCEL object
Excel.Visible = true; 
Excel.Workbooks.Add();
alert( Excel.version );
Excel.Quit(); 
Excel = null; 


//ActiveXObject support only in IE
if you get error like "Automation server can't create object" then check this[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900