The following code fails to set the cell type. Other types are properly set
but number seems to have issues. The HSSF Implimentation does not have this
issue.

Please respond, if there are workarounds or its a known defect.

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


OUTPUT::
BEFORE SETTING : [3] 
AFTER SETTING : [3]
-------------------------------------------------------------

Sachin





--
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/XSSF-cellType-setting-to-number-tp5710637.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