3

I'm using XSSF in Apache POI to generate Xlsx file. I imported org.apache.poi.xssf.usermodel.XSSFColor. My purpose is to set fill background color to RGB(141,180,226) for certain cell. I tried using

XSSFColor bg=getXSSFColor("8DB4E2");

to get the codes for the color first. Then use,

setFillBackgroundColor(bg) 

to set the color. However, method getXSSFColor cannot be found. I don't know why and if there is other to achieve the same purpose.

1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.