Can someone please explain to me why this is leaving an Excel session open on the server? I must be missing something little. Thanks!
Code:
Call fso.CopyFile(otherfile, fname)
' create the Excel object
Dim objXlApp = Server.CreateObject("Excel.Application")
objXlApp.visible = True
' open the spreadsheet file
Dim books = objXlApp.Workbooks.open(fname)
' get the worksheet
Dim objXlSheets = books.Worksheets(1)
'getting customer quote information
Dim CQArray As New ArrayList()
Label1.Text = Request.QueryString("Item")
CQArray.AddRange(CQPull(Request.QueryString("item")))
objXlSheets.range("A1").value = "Order Number"
'objXlSheets = Nothing
books.Close(True)
objXlApp.quit()
objXlApp = Nothing
fso = Nothing