Export any page to Excel automatically
Posted by: The Code Project Latest Articles,
on 14 Dec 2011 |
View original | Bookmarked: 0 time(s)
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": ......