public HSSFCell createCell(int columnIndex, CellType type){short shortCellNum = (short)columnIndex;if(columnIndex > 0x7FFF) {shortCellNum = (short)(0xffff - columnIndex);}HSSFCell cell = new HSSFCell(book, sheet, getRowNum(), shortCellNum, type);addCell(cell);sheet.getSheet().addValueRecord(getRowNum(), cell.getCellValueRecord());return cell;}

public HSSFCell createCell ( int columnIndex , CellType type ) { short shortCellNum = ( short ) columnIndex ; if ( columnIndex > 0x7FFF ) { shortCellNum = ( short ) ( 0xffff - columnIndex ) ; } HSSFCell cell = new HSSFCell ( book , sheet , getRowNum ( ) , shortCellNum , type ) ; addCell ( cell ) ; sheet . getSheet ( ) . addValueRecord ( getRowNum ( ) , cell . getCellValueRecord ( ) ) ; return cell ; }
public ICell CreateCell(int columnIndex, CellType type){short shortCellNum = (short)columnIndex;if (columnIndex > 0x7FFF){shortCellNum = (short)(0xffff - columnIndex);}ICell cell = new HSSFCell(book, sheet, RowNum, (short)columnIndex, type);AddCell(cell);sheet.Sheet.AddValueRecord(RowNum, ((HSSFCell)cell).CellValueRecord);return cell;}
