This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton 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: 120
  • 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: 120
  • 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