Hello, i'm having this error:
Object Server error 'ASP 0196 : 80040154'
when i'm trying to run this code:
'// Create excel application object
Set objApp = CreateObject("Excel.Application")
'// Open the workbook (.xls) file
Set objBook = objApp.Workbooks.Open("c:\mis documentos\prueba.xls")
'// Select the sheet
Set objSheet = objBook.Sheets.Item(0)
'// Set a celltext
objSheet.Range("A1").Value = "This text is set from ASP"
'// Close the workbook and save changes
objBook.Close True
'// Exit excel (important! especially when running on server!!!)
objApp.Quit
'// Garbage collection (just to make sure)
Set objSheet = Nothing
Set objBook = Nothing
Set objApp = Nothing
I noticed that i have the problem with IIS 4.0 in windows NT where i need to setup the AspAllowOutOfProcComponents but i don't how to do this with the Microsoft Management Console MMC.
How can i do this? I'll been searching but i don't know, Please help. :-(
Object Server error 'ASP 0196 : 80040154'
when i'm trying to run this code:
'// Create excel application object
Set objApp = CreateObject("Excel.Application")
'// Open the workbook (.xls) file
Set objBook = objApp.Workbooks.Open("c:\mis documentos\prueba.xls")
'// Select the sheet
Set objSheet = objBook.Sheets.Item(0)
'// Set a celltext
objSheet.Range("A1").Value = "This text is set from ASP"
'// Close the workbook and save changes
objBook.Close True
'// Exit excel (important! especially when running on server!!!)
objApp.Quit
'// Garbage collection (just to make sure)
Set objSheet = Nothing
Set objBook = Nothing
Set objApp = Nothing
I noticed that i have the problem with IIS 4.0 in windows NT where i need to setup the AspAllowOutOfProcComponents but i don't how to do this with the Microsoft Management Console MMC.
How can i do this? I'll been searching but i don't know, Please help. :-(