开发者

how to set the color to excel sheet row in c#

开发者 https://www.devze.com 2023-01-01 02:50 出处:网络
I am reading the excel sheet as well as expor开发者_如何学Cting the read excel. I want to set the Fill (backg color) color to header row of exported excel sheet.I am using C# +asp.net.Got the Answer:

I am reading the excel sheet as well as expor开发者_如何学Cting the read excel. I want to set the Fill (backg color) color to header row of exported excel sheet.I am using C# +asp.net.


Got the Answer: oRange.get_Range("A1","X1").Interior.Color = System.Drawing.ColorTranslator.ToWin32(Color.Orange);

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号