LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Export To Excel From ASPNET

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;
}
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Export Excel tuncating leading zeros while export to excel from da RHBKV Setting up and Configuration of Excel 1 July 15th 09 01:48 PM
export re-order input fields to export file [csv] madisonpete Excel Worksheet Functions 0 November 30th 07 03:51 PM
Excel / XMI Export dvhirst Excel Discussion (Misc queries) 0 June 7th 07 03:59 PM
Can I export from Excel to ACT Parm Excel Discussion (Misc queries) 2 July 1st 05 03:28 PM
Export to Excel API ong Excel Programming 4 January 3rd 05 02:02 AM


All times are GMT +1. The time now is 07:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"