1、普通 HSSFSheet lo_sheet = (HSSFSheet)lo_workbook.CreateSheet("sheet"); HSSFCell ...
1、普通 HSSFSheet lo_sheet = (HSSFSheet)lo_workbook.CreateSheet("sheet"); HSSFCell ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using NPOI ...
转自:http://www.cr173.com/html/18143_2.html ...
有时,我们可能需要某些单元格只读,如在做模板时,模板中的数据是不能随意让别人改的。在Excel中,可以通过“审阅->保护工作表”来完成,如下图: 那么,在NPOI中有没有办法通过编码的方式达到这一效果呢?答案是肯定的。 1 2 ...
...
使用FillBackgroundColor不会起作用,不能使用自定义的颜色。 设置背景颜色代码: HeadercellStyle.FillPattern = FillPattern.SolidForeground; HeadercellStyle.FillForegroundColor ...
原文:http://blog.csdn.net/xxs77ch/article/details/50245391 ...