Hi sachin
i have faced same issue as u have. I don't no the actual root cause of
behind that issue but i have got solution for that.i used createCell()
method with two argument.Second argument passed type string.


Workbook wb = new XSSFWorkbook(); 
Cell cell  =  row.createCell(1,Cell.CELL_TYPE_STRING); 
System.out.println("BEFORE SETTING : [" + cell.getCellType()+"]"); 
cell.setCellType(Cell.CELL_TYPE_NUMERIC);
System.out.println("AFTER SETTING : [" + cell.getCellType()+"]"); 


OUTPUT:: 
BEFORE SETTING : [1]
AFTER SETTING : [0]



--
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/XSSF-cellType-setting-to-number-tp5710637p5714303.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to