Quantcast
Channel: NPOI
Viewing all articles
Browse latest Browse all 1621

New Post: ICellStyle FillForegroundColor issues

$
0
0
Hi, We are newly started using NPOI components.
We are having issues to set FillForegroundColor of ICellStyle property.

ICellStyle HeaderCellStyle = xssfworkbook.CreateCellStyle();
HeaderCellStyle.FillForegroundColor = NPOI.HSSF.Util.HSSFColor.RED.index;
FillForegroundColor expects of type short.

How do we set a different color rather than using colors in HSSFColor.
We need to set to "#BE4E5E" and how do we do that for ICellStyle property FillForegroundColor

Colud someone help us by some example?

Viewing all articles
Browse latest Browse all 1621

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>