Working with applying CSS to Excel using C#

Posted by Santhosh.Nallavelli under C# on 8/13/2012 | Points: 10 | Views : 5146 | Status : [Member] | Replies : 2
Hi all ,

I want to apply CSS to the Excel sheet by using c# .
Please suggest me .




Responses

Posted by: Arul44ece on: 8/14/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Santhosh,

Please go through the below link.

http://www.codeproject.com/Articles/16311/How-to-export-GridView-to-Excel-render-cells-add-W

It may be help u

Regards,

Arul R
arul44.ece@gmail.com

Santhosh.Nallavelli, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ranjeet_8 on: 8/14/2012 [Member] [MVP] Gold | Points: 25

Up
0
Down
Refer this url
http://www.dotnetfunda.com/codes/code2691-export-to-excel-from-datagridview-in-aspnet.aspx
You can add css using
Your_Control_Name.HeaderRow(or HeaderRow.Cell[0]) .Style.Add("background-color", "#2f2f2f"); // #2f2f2f is color code.
Or GridViewRow.BackColor = Color.White;


Santhosh.Nallavelli, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response