Posted on: 2/18/2015 7:37:56 PM | Views : 478

HI ,
   I want to export an Excel with multiple  sheets from a dataset,includes image and background cell color,
I have developed for excel export with seperate sheet.
I will attach my code here whixh works for single sheet
private void ExporttoExcel(DataTable table) { HttpContext.Current.Response.Clear(); HttpContext.Current.Response.ClearContent(); HttpContext.Current.Response.ClearHeaders(); HttpContext.Current.Response.Buffer = true; HttpContext.Current.Response.ContentType = "application/ms-excel"; HttpContext.Current.Response.Write(@"<!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.0 Transitional//EN"">"); HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment;filename=Reports.xls"); HttpContext.Curr ...

Go to the complete details ...