Click here to Skip to main content
15,892,298 members
Articles / Web Development / ASP.NET

Export any page to Excel automatically

14 Dec 2011CPOL 1.9K   1
DataTable people = (DataTable)Session["people"];ExcelFile ef = new ExcelFile();ExcelWorksheet ws = ef.Worksheets.Add("DataSheet");ws.InsertDataTable(people, "A1", true); Response.Clear(); switch (this.RadioButtonList1.SelectedValue){ case "XLS": ...
Only logged in members can view this content

Please go to the ASP.NET Table of Contents to view the list of available articles in this section.