Cannot get a text value from a numeric cell “Poi”

前端 未结 11 2027
余生分开走
余生分开走 2020-12-07 22:17

I\'m trying to consume data from a spreadsheet in Excel, but always of this error, already tried formatting the worksheet to text and number and still the error persists.

11条回答
  •  粉色の甜心
    2020-12-07 23:16

    use the code
    cell.setCellType(Cell.CELL_TYPE_STRING);
    before reading the string value, Which can help you.
    I am using POI version 3.17 Beta1 version, sure the version compatibility also..

提交回复
热议问题