使用FillBackgroundColor不會起作用,不能使用自定義的顏色,
設定背景顏色代碼:
HeadercellStyle.FillPattern = FillPattern.SolidForeground; HeadercellStyle.FillForegroundColor = NPOI.HSSF.Util.HSSFColor.RoyalBlue.Index;
相關鏈接:
https://www.niceonecode.com/Question/20373/Unable-to-set-FillBackgroundColor-using-HSSFWorkbook-in-CSharp
https://stackoverflow.com/questions/31159724/npoi-setting-background-color-isnt-working
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/288725.html
標籤:.NET技术
