java - HSSF. Clear the cell -
sheet.setcolumnwidth(13,(short)0);
totally different
row.removecell(13);
doesn't work too.
what should use goal?(delete cell)
if want clear data of cell :
option 1 : set value nulll
. advantages don't need gain cell style, alignment, font style, etc.. cell.
row.getcell(13).setcellvalue(null); cell cell13 = cell.getcell(13);
option 2 : remove cell. when take cell13 again, return null
. that's why, need create call , style.
row.removecell(13); cell cell13 = cell.getcell(13);
Comments
Post a Comment