Open Excel form an aspx page

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,276
Latest member
Sawatmakal

Latest Threads

Top