Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)
public ActionResult ExportToExcel(int id) { string sb = "html table tag in here"; byte[] buffer = System.Text.Encoding.UTF8.GetBytes(sb.ToString()); return File(buffer, "application/vnd.ms-excel"); }
No comments:
Post a Comment