CellStyle cellStyle = xssfWorkbook.createCellStyle(); cellStyle.setDataFormat((short)14); cell.setCellStyle(cellStyle);. I did it with xlsx and it worked fine.
確定! 回上一頁