本帖最后由 wh32967515 于 2014-03-03 08:59:59 编辑

解决方案 »

  1.   

    是这个方法  _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;
      

  2.   

    第一个不清楚,
    第二个看下边 CellStyle.FillPattern = FillPatternType.SQUARES;
                        CellStyle.FillForegroundColor = CellStyle.FillBackgroundColor = HSSFColor.YELLOW.index;
      

  3.   

    今天早上查资料,发现另一个有完整的demo,学习了。已搞定。
    http://www.cnblogs.com/amour/archive/2013/01/11/2856166.html
    分还是给到大家,谢谢楼上两位。