Hi All,
I have a web app that calls an excel spreadsheet for manipulation. During testing I can apparently open th excel app and there my program hangs. I noticed that I have excel processes not terminated on the server.
I would like to see if there is a way that I can loop thru the opened apps and close them, like a for each loop but am unsure as to logic. This is what I have so far...
Further to my app, is there an easy way to read the data in the excel sheet into an array. My plan was to conver the excel file to a csv file and read that in, but it hangs on the file SaveAs "myfile.csv"...
Help is, as always, much appreciated
TIA
Bastien
Cat, the other other white meat
I have a web app that calls an excel spreadsheet for manipulation. During testing I can apparently open th excel app and there my program hangs. I noticed that I have excel processes not terminated on the server.
I would like to see if there is a way that I can loop thru the opened apps and close them, like a for each loop but am unsure as to logic. This is what I have so far...
Code:
Set objXlApp = GetObject(, "Excel.Application")
If Err.Number <> 429 Then
set objXlApp = nothing
End If
Further to my app, is there an easy way to read the data in the excel sheet into an array. My plan was to conver the excel file to a csv file and read that in, but it hangs on the file SaveAs "myfile.csv"...
Code:
Set objXlApp = Server.CreateObject("Excel.Application")
'open the spreadsheet file
response.write "opening file<br>"
set objXlWb = objXlApp.Workbooks.Open(Path & HR)
objXlWb.ActiveWorkbook.SaveAs "hier.csv"
objXlApp.Application.Quit
Help is, as always, much appreciated
TIA
Bastien
Cat, the other other white meat