js里面如何关闭excel文件?
var xlApp,oWB,xlSheet;
xlApp = new ActiveXObject("Excel.Application");
try
{
oWB = xlApp.Workbooks.Open(FileName);
}
catch(e)
{
alert("错误的excel表");
xlApp.Close();
return;
}
oSheet.close();
xlApp.close();
我的代码如上,每执行close()的时候总是出错,请问怎么关闭打开的excel文档呢?