Export To Excel From ASPNET

C

Coneection OLAP

Hi:

Mi Problem is the next, i want export to excel from page ASPX, i can make
all, but mi problem is that only make excel application in the memory, no
display el excel worrbook, the code use is C#

private void Button1_Click(object sender, System.EventArgs e)
{
Microsoft.Office.Interop.Excel.Application oExcel;
Microsoft.Office.Interop.Excel.Workbook oBook;

object oMissing = System.Reflection.Missing.Value;
oExcel = new Microsoft.Office.Interop.Excel.Application();

// Add a Workbook.
oBook = oExcel.Workbooks.Add(oMissing);
oBook.Activate();
oExcel.Visible = true;
oExcel.UserControl = true;
}
 

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

Top