错误:Automation 服务器不能创建对象
错误:Automation 服务器不能创建对象
这个提示是什么意思啊
源代码是这样的
<script LANGUAGE="javascript">
function AutomateExcel()
{
// Start Excel and get Application object.
var oXL = new ActiveXObject("Excel.Application"); //出错提示的是这行出错
// Get a new workbook.
var oWB = oXL.Workbooks.Add();
var oSheet = oWB.ActiveSheet;
var table = document.all.data;
var hang = table.rows.length;
var lie = table.rows(0).cells.length;
// Add table headers going cell by cell.
for (i=0;i<hang;i++)
{
for (j=0;j<lie;j++)
{
oSheet.Cells(i+1,j+1).value = table.rows(i).cells(j).innerText;
}
}
oXL.Visible = true;
oXL.UserControl = true;
}
</script>
当点某个按钮后触发这个函数
asp编程
是不是要在iis里设置些东西啊