tags:

views:

528

answers:

1

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 call picture.resize(); method.

Later I resize the columns of the excel file by calling sheet.setColumnWidth(columnindex, columnwidth) the image losses its original height/width.

Please help.

A: 

Shouldn't you just hold onto the picture object and call resize() very last, after your setcolumnwidth()s are done?

larson4