TheConeHead
Programmer
This works locally on an html page just fine - but when I put it on a sverer on asp I get the following error:
ActiveX component can't create object: Excel.Application
Is something missing from the server?
ActiveX component can't create object: Excel.Application
Is something missing from the server?
Code:
<SCRIPT LANGUAGE=VBScript>
Dim objExcel
Sub Btn1_onclick()
call OpenWorkbook("C:\Inetpub\[URL unfurl="true"]wwwroot\folder\file.xls")[/URL]
End Sub
Sub OpenWorkbook(strLocation)
Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = true
objExcel.Workbooks.Open strLocation
objExcel.UserControl = true
End Sub
</SCRIPT>
<a href="#" class="contentsw" NAME='Btn1'>Link</a>
[conehead]