I've used the following code to open Excel. It works but generates a browser error warning the visitor that the web page is trying to run an add-on with an unknown name, and control with an unknown name. Is there a better way to open Excel (read only) in order to read and display its contents? I have the code for reading/loading data. I'm just looking for a way to open Excel in Javascript to avoid the above error.
<head>
<script>
function loadexcel() {
var serverLoc = "http://www.mydomain.com/excel_folder/";
var serverFile = serverLoc+"myexcel.xls";
var ehandle = new ActiveXObject("Excel.Application");
var eWBhandle = ehandle.Workbooks.Open(serverFile);
var eShandle = eWBhandle.ActiveSheet;
-----
// read cells and display on page
}
Any help would be appreciated!
MS