G
Guest
I want to open Excel from an aspx page, put some records in there, format
them and close the excel file. I can't open the Excel application.
It says Cannot create ActiveX component.
Here is the code:
Imports Excel = Microsoft.Office.Interop.Excel
Public Class MG
Inherits System.Web.UI.Page
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim oExcel As Object
oExcel = CreateObject("Excel.Application")
End Sub
End Class
Can anyone tell me what to do?
them and close the excel file. I can't open the Excel application.
It says Cannot create ActiveX component.
Here is the code:
Imports Excel = Microsoft.Office.Interop.Excel
Public Class MG
Inherits System.Web.UI.Page
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim oExcel As Object
oExcel = CreateObject("Excel.Application")
End Sub
End Class
Can anyone tell me what to do?