Copy link to clipboard
Copied
For excel files, we use Apache POI. It worked fine until we applied the latest CF Security patch to our CF2023 server. It must have updated POI to the latest version which deprecated some of the functions. I was able to fix one issue, but am not able to see how I can create XSSFColor from RGB. My previous code was:
rgb=createObject("java","java.awt.Color").init(javacast("int",234),javacast("int",230),javacast("int",202));
createObject("java","org.apache.poi.xssf.usermodel.XSSFColor").init(rgb);
I found the solution after doing lots of research, and have posted it above in my original post incase it helps someone.
Copy link to clipboard
Copied
I found the solution after doing lots of research, and have posted it above in my original post incase it helps someone.
Copy link to clipboard
Copied
Thanks for sharing your solution.
Copy link to clipboard
Copied
We ended up not needing the color code we had but this took us in the right direction. Thanks for posting your solution!
Copy link to clipboard
Copied
Glad to hear it helped steer you in the right direction 🙂
Find more inspiration, events, and resources on the new Adobe Community
Explore Now