title: apache poi - CellStyle color cell
body: <p>After searching i found a solution on stackoverflow:</p>
  
  <p>Refering to this
  <a href="https://stackoverflow.com/questions/2803841/setting-foreground-color-for-hssfcellstyle-is-always-coming-out-black">Setting foreground color for HSSFCellStyle is always coming out black</a></p>
  
  <pre><code>csFirstRow.setFillForegroundColor(HSSFColor.GREY_25_PERCENT.index);
  csFirstRow.setFillPattern(CellStyle.SOLID_FOREGROUND);
  </code></pre>
  
  <p>But it seems to have no effect.</p>
  
  <p>Reading and searching google / Poi Docs desnt help.</p>
  
  <p>How to Colorize a Cell using apache Poi?</p>