This week's book giveaway is in the Security forum.
We're giving away four copies of Penetration Testing Basics and have Ric Messier on-line!
See this thread for details.
Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

facing diffculty to highlight background color of an excel cell which is not reflected in file

anish reddy
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
iam unable to fill background color for an excel cell

HSSFWorkbook hwb = new HSSFWorkbook();
HSSFSheet sheet = hwb.createSheet("new sheet");
HSSFCellStyle style = hwb.createCellStyle();

HSSFRow row = sheet.createRow((short) 0);

HSSFCell cell = row.createCell((short) 0);



FileOutputStream fileOut = new FileOutputStream("C:\\fillsColor.xls");

here is my code please can any one give inputs which correctly reflects background color for a cell of an excel or code do it
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic