如何指定信息是否为数字?it.MOPID字段被认为是一个数值字段,但实际上是文本字段。对此有什么想法吗?
cellMOPID.setCellValue(it.MOPID)
cellStartDate.setCellValue("" + it.SOM)发布于 2013-07-18 03:38:21
您必须更改单元格类型,例如: cell.setCellType(Cell.CELL_TYPE_NUMERIC);
http://poi.apache.org/apidocs/org/apache/poi/ss/usermodel/Cell.html Apache POI - get number as integer
https://stackoverflow.com/questions/17708634
复制相似问题