Hi There!
My issue is..
I want to write an Excel file thru ASP/VB SCript code. Whenever I try to create an instance of Excel, I get error "ActiveX cannot create component: Excel".
Unable to figure out, what is the reason. Excel 97 is installed on NT with IIS4.0
Code is like......
<script language="vbscript">
Sub btnExcel_onclick()
dim objXL
Set objXL = CreateObject("Excel.Application"
objXL.Visible = TRUE
objXL.WorkBooks.Add
objXL.Columns(1).ColumnWidth = 25
objXL.Columns(2).ColumnWidth = 25
objXL.Columns(3).ColumnWidth = 30
objXL.Rows("1:1"
.Select
objXL.Selection.Font.Bold = True
objXL.Cells(1, 1).Value = "Insurance"
objXL.Cells(1, 2).Value = "Medical"
objXL.Cells(1, 3).Value = "Total"
objXL.Cells(2, 1).Value = 38982
objXL.Cells(2, 2).Value = 3834
objXL.Cells(2, 3).Value = "=SUM(A2/B2)"
End Sub
</script>
Any help, I am greatful.
Thank you
Nanda
My issue is..
I want to write an Excel file thru ASP/VB SCript code. Whenever I try to create an instance of Excel, I get error "ActiveX cannot create component: Excel".
Unable to figure out, what is the reason. Excel 97 is installed on NT with IIS4.0
Code is like......
<script language="vbscript">
Sub btnExcel_onclick()
dim objXL
Set objXL = CreateObject("Excel.Application"
objXL.Visible = TRUE
objXL.WorkBooks.Add
objXL.Columns(1).ColumnWidth = 25
objXL.Columns(2).ColumnWidth = 25
objXL.Columns(3).ColumnWidth = 30
objXL.Rows("1:1"
objXL.Selection.Font.Bold = True
objXL.Cells(1, 1).Value = "Insurance"
objXL.Cells(1, 2).Value = "Medical"
objXL.Cells(1, 3).Value = "Total"
objXL.Cells(2, 1).Value = 38982
objXL.Cells(2, 2).Value = 3834
objXL.Cells(2, 3).Value = "=SUM(A2/B2)"
End Sub
</script>
Any help, I am greatful.
Thank you
Nanda