Hi Leo and Greg,
Thanks for your help. Those sites were very helpful.
But, I am still having a problem to access the "EXCEL" object at this code;
Dim Xcl
Set Xcl = Server.CreateObject("Excel.Application")
I get the following error;
"Technical Information (for support personnel)
Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid ProgID. For additional information specific to this message please visit the Microsoft Online Support site located at:
http://www.microsoft.com/contentredirect.asp.
/test-xhtml/Excel_TEST_2.asp, line 9"
Here is the complete code;
<%@ Language=VBScript %>
<% option explicit
StartExcel
Sub StartExcel
Dim Xcl
set Xcl = server.CreateObject "Excel.Apllication")
xcl.Visible = true
set newBook = Xcl.Workbooks.Add
newBook = Xcl.WorkSheets(1).Activate
newBook.WorkSheets(1).Cells(1,1).Value="Value1"
newBook.WorkSheets(1).Name="My First WorkSheet"
set Xcl = Nothing
set newBook = Nothing
End Sub
%>
I have EXCEL installed and I didn't have to register any DLL to access the "EXCEL" object.
Any advice?
Thanks for your help,
mcinar