Exporting dataset to Excel

AverageAdam

Member
Joined
Jun 3, 2007
Messages
6
Programming Experience
1-3
I can't make Excel visible when I eport from my asp.net application.

I have the following code:

Dim excelApp As New Excel.Application
Dim excelBook As Excel.Workbook = excelApp.Workbooks.Add
Dim excelWorksheet As Excel.Worksheet = CType(excelBook.Worksheets(1), Excel.Worksheet)
excelApp.Visible = True


Why wouldn't I be able to see this empty Excel workbook?
 
With ASP.NET, the code executes on the server not the client. In ASP.NET, a page is executed and HTML is generated which is then sent to the client to be rendered in the browser.

I plugged your title for this post in to Google and found many examples. Here are a couple:
Export ASP.NET DataGrid to Excel
Exporting datagrid to Excel
 
Back
Top