File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes How to add different images to different sheets in excel using POI..? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "How to add different images to different sheets in excel using POI..?" Watch "How to add different images to different sheets in excel using POI..?" New topic
Author

How to add different images to different sheets in excel using POI..?

santhosh.R gowda
Ranch Hand

Joined: Apr 06, 2009
Posts: 296
Dear all

I have a reqiurement where in i want to add different images to different sheets of a excel using POI . as of now the image is getting overwritten . so can you please let me know how the requirement can be achieved.


Creativity is nothing but Breaking Rules
manoj r patil
Ranch Hand

Joined: Jun 06, 2002
Posts: 181
You can check the example OfficeDrawing.java which demonstrates adding images on different sheets. If you will download the source code, all the examples are included there.

Basically you will have to get handle of different sheets and set the anchor using HSSFClientAnchor and then add the images.


love your job and not your company;
...because you never know when your company will stop loving you!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to add different images to different sheets in excel using POI..?