NPOI Freeze Fix Head Column Excel

  • 366
  • 0

NPOI Freeze Fix Head Column Excel


 

HSSFSheet sheet1 = hssfworkbook.CreateSheet("Sheet1");
HSSFRow row1 = sheet1.CreateRow(0);
row1.CreateCell(0).SetCellValue("Freeze Row");
sheet1.CreateFreezePane(1, 0, 1, 0);

//4 params (freeze row, freeze column, right area first see row index, down area first see column index)