关于excel,请高手指点
我asp中点击一个按钮,打开excel,填入一个数据,在vb中可以通过,但在asp中出错,说什么什么不能"read",原码:
<input type="button" value="提交" name="B1" onclick="CommandButton1_Click()">
<%
Sub CommandButton1_Click()
Set xlapp = CreateObject("excel.application")
xlapp.Visible = True
Set xlformbook = xlapp.workbooks.Add
Set xlformsheet = xlformbook.worksheets(1)
xlformsheet.Cells(1, 1) = "sagaga"
End Sub
%>