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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -