Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

APACHE POI - Not able to give background colour to a cell

 
rammie singh
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,

i m trying a piece of code to give background colour to a cell by using POI. But result is not getting reflected..meaning the bckground color is not produced.

Can any body please help me ..or tell me, where i am going wrong.

my piece of code is below

 
rammie singh
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody guide on this ..Please help.
 
Mark Ryan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My code below should help...............

 
Pradeep Kuppusamy
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you still want to use HSSFCellStyle, then use setFillForeGroundColor(); That will do. Though I dont understand why they have BackGround fill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic