POI 3.2 Image Height/Width controlling

后端 未结 4 1145
灰色年华
灰色年华 2021-01-13 05:14

Using POI version 3.2

Issue: Not able to resize an image to its original height and width. I am able to add an image to the excel file.

After adding image I

4条回答
  •  终归单人心
    2021-01-13 05:30

    I found that you must NOT call picture.resize() until after sheet.autoSizeColumn(i) even if you are not calling autoSizeColumn(i) on the column to which the picture is anchored.

提交回复
热议问题