Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8660545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:16:42+00:00 2026-06-12T16:16:42+00:00

After searching i found a solution on stackoverflow: Refering to this Setting foreground color

  • 0

After searching i found a solution on stackoverflow:

Refering to this
Setting foreground color for HSSFCellStyle is always coming out black

csFirstRow.setFillForegroundColor(HSSFColor.GREY_25_PERCENT.index);
csFirstRow.setFillPattern(CellStyle.SOLID_FOREGROUND);

But it seems to have no effect.

Reading and searching google / Poi Docs desnt help.

How to Colorize a Cell using apache Poi?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T16:16:44+00:00Added an answer on June 12, 2026 at 4:16 pm

    It seems to be unnessecary to set the Fill Background. It requires the “fillPattern”

    csFirstRow.setFillForegroundColor(HSSFColor.GREY_25_PERCENT.index);
    csFirstRow.setFillPattern(CellStyle.SOLID_FOREGROUND);
    

    as javadoc says (setFillPattern)

    setting to one fills the cell with the foreground color… No idea about other values

    Now it works as it should

    thanks to this helpfull answer on stackoverflow

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After two days searching this answer I found a solution. Use GCD for download
-Edit: Solution Found- Figured it out after some heavy searching - one person (I
After repeated searching I have not found an elegant solution to this issue: how
I'm going to edit an ImageField using jquery ajax,after searching I found out I
After searching, I found a solution for scroll disabling on UIWebview (support ios 3.2+):
After searching 1 hour i do not found any solution to my problem. I
After searching online, the best solution I've found so far is to just make
After a lot of searching, I have not found any solution for the following
After searching online and reading the Oracle documentation for this, I need some help
After searching online and going through past stackoverflow posts for a suitable implementation for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.