关于Eecel通过javaWeb导入远程数据库,如何实现?
各位大侠帮帮忙,我在做毕业设计
------解决方案--------------------http://topic.csdn.net/u/20110830/11/b96a4b05-d775-494b-bb68-fb41e540ac9d.html
------解决方案--------------------
JS代码:
var oXL = new ActiveXObject("Excel.application");
var oWB = oXL.Workbooks.open(excelFilePath);
oWB.worksheets(1).select();
var oSheet = oWB.ActiveSheet;
try
{
var celVal = oSheet.Cells(1,1).value;
......
}
catch(e)
{
}
oXL.Quit();
oXL = null;
CollectGarbage();