c# - How can I set the RGB Color in font Using xssfworkbook npoi -


how can set rgb color in cell backgroudn using class xssfworkbook using npoi?

byte[] rgb = new byte[3] { 192, 50, 90 }; xssfcellstyle headercellstyle1 = (xssfcellstyle)wb.createcellstyle(); headercellstyle1.setfillforegroundcolor(new xssfcolor(new color(255, 255, 255))); 

i don't want use pattern:

titlestyle.bottombordercolor = indexedcolors.grey25percent.index; 

    solution of problem here      here define new xssfcolor , assign xssfcellstyle         var color = new xssfcolor(new byte[] { 0,255, 0 });  var rowstyle =(xssfcellstyle)wb.createcellstyle();  rowstyle.setfillforegroundcolor(color) 

Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -