Sorry to say this but I cannot reproduce this problem. I copied your test code, compiled and then ran it and did not see the problem you describe. What I did see is that the resize() method had a very strange behavior that I could not explain. The first image was inserted into the workbook but it was very much larger than the other two. In like manner, the second image I inserted into the workbook was tiny and the third image somewhere in-between in terms of size. All could be dragged independently of one another (selecting image one led to me moving image one and so on). If I commented out the resize() method and set all of the anchor's parameters myself, then I saw three, equally sized images inserted into the workbook and, again, all of the images could be dragged independently of one another. To be certain, I changed the sizes of the images so that they filled the cells, fitted well within the cell's boundaries and even overlapped into neighbouring rows/columns.
Could this be what you are seeing? The first image, as it is huge, would be the only one you could select on my example? If not, can you post a copy of a workbook that you have created with your test code that illustrates the problem you describe please? Yours Mark B PS I am running under Windows 7 and tested the output workbook with both Excel 2007 and OpenOffice. -- View this message in context: http://apache-poi.1045710.n5.nabble.com/Strange-effects-with-images-in-XLSX-file-tp5710866p5710877.html Sent from the POI - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
