Here is the code we are using to launch Excel from the page.
<%
Dim strFilePath
DIM strFileSize
Dim strFileName
Dim myFSO
Dim conn
Dim rs
Dim Sql
Dim RowCtr
Dim BuildPathName
Dim BuildFileName
Const adTypeBinary = 1
BuildPathName = "e:/inetpub/internet/cgi-bin/WMB/"
'BuildPathName = "c:/temp/"
BuildFileName = "Responses " & Year(Now()) & Month(Now()) & Day(Now()) &
Hour(Now()) & Minute(Now()) & Second(Now()) & ".xls"
set cnn = server.createobject("ADODB.Connection")
cnn.Open "Driver={Microsoft Access Driver (*.mdb)};" & _
"Dbq=e:\inetpub\internet\cgi-bin\WMB\WASSurvey.mdb;"
sSQL = "SELECT * FROM Input"
Set Rs = cnn.Execute(sSQL)
Set ExcelApp = CreateObject("Excel.Application")
ExcelApp.Application.Visible = False
Set ExcelBook = ExcelApp.Workbooks.Add
RowCtr = 0
Do While NOT rs.EOF
The Set ExcelApp= CreateObject("Excel.Application) is the line that is
the catlyst for the problem.
*** Sent via Developersdex <a style='text-decoration: underline;' href="http://www.developersdex.com" target="_blank">http://www.developersdex.com</a> ***
Don't just participate in USENET...get rewarded for it!<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Launch Office Applications From ASP