on-internet
← Community

Give background color to excel sheet in asp.net

Stack Overflow ·

I am performing export to excel in asp.net without using any third party controls. How can i give background color to my exported excel sheet? The background color may (not sure) be different according to some cells range. Say from Cell 0- 5 (Cell A-E in excel) is red color, 6-12 is green and so on and so forth. How can i achieve the same? public static void DataSetToExcel(System.Data.DataSet dtExport, System.Web.HttpResponse response, string strFileName) { //Clean up the response Object response.Clear(); response.Charset = ""; //Set the respomse MIME type to excel response.ContentType = "appl

Comments

Sign in or sign up to comment and upvote.

No comments yet.