NPOI导出Excel表格 填充单元格颜色
2019-10-21 本文已影响0人
慢慢来比较快_7644
ICellStyle yellowStyle = workBook.CreateCellStyle(); //黄色
yellowStyle.FillForegroundColor = NPOI.HSSF.Util.HSSFColor.Yellow.Index;
yellowStyle.FillPattern = FillPattern.SolidForeground;
ICellStyle yellowStyle = workBook.CreateCellStyle(); //黄色
yellowStyle.FillForegroundColor = NPOI.HSSF.Util.HSSFColor.Yellow.Index;
yellowStyle.FillPattern = FillPattern.SolidForeground;