使用FillBackgroundColor不會起作用,不能使用自定義的顏色。
設置背景顏色代碼:
HeadercellStyle.FillPattern = FillPattern.SolidForeground; HeadercellStyle.FillForegroundColor = NPOI.HSSF.Util.HSSFColor.RoyalBlue.Index;
相關鏈接:
https://stackoverflow.com/questions/31159724/npoi-setting-background-color-isnt-working
