title: Reading Excel file from JavaScript
body: <p>I have following code for reading excel in <a href="http://goo.gl/MTJgMX" rel="nofollow">javascript</a> :</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script type="text/javascript"&gt;
  function readData(x,y)
  {
  
        var excel = new ActiveXObject("Excel.Application");
  
        alert(excel);
  
        var excel_file = excel.Workbooks.Open("D:\File1.xlsx");
        Excel.Visible = true;
  
        alert(excel_file);
  
        var excel_sheet = excel_file.Worksheets("DEPT INC UPDATE");
  
        alert(excel_sheet);
  
        var data = excel_sheet.Cells(x,y).Value;
  
        alert(data);
  
        return data;
  
  
  }
  
  
  
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;input type="button" value="SimpleButton" onclick="readData(2,3);" /&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>But dunno where it is going wrong ??</p>