function ReadData(cell, row) {
var excel = new ActiveXObject("Excel.Application");
var excel_file = excel.Workbooks.Open("C:\\RS_Data\\MyFile.xls");
var excel_sheet = excel.Worksheets("Sheet1");
var data = excel_sheet.Cells(cell, row).Value;
document.getElementById('div1').innerText = data;
}
2条答案
按热度按时间am46iovg1#
kgsdhlau2#
我也犯了同样的错误。你应该试试你的路:
excel.Workbooks.Open("C://RS_Data//MyFile.xls");
// --〉而不是--〉\