很简单的一个在客户端读取Excel文件的例子。
function readExcel()
{
var oXL = new ActiveXObject("Excel.Application");
var oWB = oXL.Workbooks.open("E:// test.xls");
var oSheet = oWB.ActiveSheet;
alert(oSheet.Cells(1,1).value);
}
{
var oXL = new ActiveXObject("Excel.Application");
var oWB = oXL.Workbooks.open("E:// test.xls");
var oSheet = oWB.ActiveSheet;
alert(oSheet.Cells(1,1).value);
}