I try to align pictures in the current Asopse Cells 18.104.22.168. I’ve no issue with the horizontal allignement and via Picture.setLeft but setTop does not seem to work as expected:
int pic = sheet.getPictures().add(5,5, “bridge.jpg”);
Picture picture = sheet.getPictures().get(pic);
The setLeft moves the picture 20 pixles to the right as expected, setTop gives thew following error:
java.lang.IllegalArgumentException: The top value must be less than the upper left row height.
at com.aspose.cells.Shape.setTop(Unknown Source)
Any hint is welcome,
thanks for you feedback.
Is it possible to place the picture relative to a cell - beyond the size of the cell? The documentation is not very clear in this area.