ASP直接调用EXCEL数据的例子 有问题!
代码:<% Set xlApp = server.CreateObject("Excel.Application")
strsource = "D:\info.sinobal\test\ss.xls"
Set xlbook = xlApp.Workbooks.Open(strsource)
Set xlsheet = xlbook.Worksheets(1)
i=1
response.write "<table cellpadding=0 cellspacing=0 border=1 width=500>"
while xlsheet.cells(i,1)<>""
response.write "<tr>"
response.write " <td height=20 align=center width=100>" & xlsheet.Cells(i, 1) & "</td>"
response.write " <td height=20 align=center width=200>" & xlsheet.Cells(i, 2) & "</td>"
response.write " <td height=20 align=center width=200>" & xlsheet.Cells(i, 3) & "</td>"
response.write "</tr>"
i=i+1
wend
response.write "</table>"
set xlsheet=nothing
set xlbook=nothing
xlApp.quit
%>
出错了:
Server 对象 错误 'ASP 0178 : 80070005'
Server.CreateObject 访问错误
/untitled.asp,行 11
检查权限时,对 Server.CreateObject 的调用失败。拒绝对此对象的访问
怎么回事呢?