Thanks Nick !
I have now understood the way to go.
I make something like that:
/Drawing pictures = sheet.createDrawingPatriarch();
pictures.createPicture(anchor1, loadPicture("picture1.png", wb ));
pictures.createPicture(anchor1, loadPicture("picture2.png", wb ));/
And it seems to work!
Nevertheless, I am facing in some picture adding to a problem when I open
the generated excel file.
I am French and my alert is in French, but I'll try to translate my alert
message:
/Excel has encountered an unreadable content.../
Then, when I click yes (repare), I get this message:
/Excel was able to open the file by removing or repairing the unreadable
content.
Deleted part: print options.
Records repaired: Drawing in the / xl/drawings/drawing1.xml (drawing shape)/
Do you have an idea ?
Thanks for your help !
--
View this message in context:
http://apache-poi.1045710.n5.nabble.com/Add-several-pictures-in-an-excel-file-tp5042533p5058205.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]