Java POI Excel creating new column and new rows

后端 未结 5 893
慢半拍i
慢半拍i 2021-01-16 05:09

Ok so Im iterating over a list and instead of inserting values into cells horizontally, im putting the values in the cells vertically.

It works fine for the first ti

5条回答
  •  不知归路
    2021-01-16 06:10

    this is the solution that worked:

    myRow = sheet.getRow(row);
    
    if(null == myRow)
    {
    
        myRow=sheet.createRow(row);
    }
    

提交回复
热议问题