求帮:NPOI设置Excel单元格背景及合并问题? 本帖最后由 wh32967515 于 2014-03-03 08:59:59 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 是这个方法 _currentSheet.AddMergedRegion(new CellRangeAddress(BeginX, EndX, BeginY, EndY));第二个 _currentSheet.GetRow(row).GetCell(column).CellStyle.FillForegroundColor = colIndex; _currentSheet.GetRow(row).GetCell(column).CellStyle.FillBackgroundColor = colIndex; _currentSheet.GetRow(row).GetCell(column).CellStyle.FillPattern = FillPatternType.BIG_SPOTS; 第一个不清楚,第二个看下边 CellStyle.FillPattern = FillPatternType.SQUARES; CellStyle.FillForegroundColor = CellStyle.FillBackgroundColor = HSSFColor.YELLOW.index; 今天早上查资料,发现另一个有完整的demo,学习了。已搞定。http://www.cnblogs.com/amour/archive/2013/01/11/2856166.html分还是给到大家,谢谢楼上两位。 求助,Dev-gridControl多列表怎么根据多个字段来关联? USB数据恢复 如何遍历一个窗体中的所有控件 大家好,哪位高手知道页面采用流式或版式是怎么写的啊?什么个代码,它的属性在哪里? click后构造出窗口,如何始终让该窗口始终获得焦点(其他窗口都没法激活)?? VS2010的C#制作带卸载功能的安装包过程 如何自己编程控制一个播放器打开特定文件 linq这个东西怎么写来自,以前看到过别人写 现在忘记了.. C#中真的不支持动态数组吗 请问上传文件大小的限制如何去掉 给大分:主线程,取子线程结果错乱的问题 问一个很关键很致命但却不一定难的问题。
第二个
_currentSheet.GetRow(row).GetCell(column).CellStyle.FillForegroundColor = colIndex;
_currentSheet.GetRow(row).GetCell(column).CellStyle.FillBackgroundColor = colIndex;
_currentSheet.GetRow(row).GetCell(column).CellStyle.FillPattern = FillPatternType.BIG_SPOTS;
第二个看下边 CellStyle.FillPattern = FillPatternType.SQUARES;
CellStyle.FillForegroundColor = CellStyle.FillBackgroundColor = HSSFColor.YELLOW.index;
http://www.cnblogs.com/amour/archive/2013/01/11/2856166.html
分还是给到大家,谢谢楼上两位。