Apache POI fills XSSF cell with black instead of desired custom color when applying a PropertyTemplate border

后端 未结 1 1172
隐瞒了意图╮
隐瞒了意图╮ 2021-01-21 23:45

I am writing a program that is supposed to make an Excel spreadsheet with some cells that are filled orange, given text, and given a border using a PropertyTemplate

相关标签:
1条回答
  • 2021-01-22 00:04

    Well, looks like it's a bug with Apache POI. I noticed someone posted about it in their bug tracker a while ago and it still exists in version 3.16.

    In case anyone else comes across this issue, my workaround was to put the PropertyTemplate (the borders) on before filling any cells with my custom orange. It meant significantly modifying my code, but it works now.

    0 讨论(0)
提交回复
热议问题