Hi there.

You don't need a new patriarch each time you add an image. Consider instantiating a patriarch once and reusing it for all images on one sheet.

Comment from the JavaDoc:
Creates the top-level drawing patriarch. This will have the effect of removing any existing drawings on this sheet. This may then be used to add graphics or charts

Good luck.

-h
----------------------------------------------------------------------
Hira, N.R.
Cognocys, Inc.

Catch up on the news.  http://www.cognocys.com/prospector/news.html


On 11-May-2009, at 5:46 AM, Dhulipati, Chaitanya wrote:


Hi ,
I am using CreateDrawingPatrich() method to add images into excel sheet,its adding properly but privious imges are removing by using this method ,

I also want to retail those privious images while ading new images .

Let me knwo if u have any sollution to avoid this problem , i need to add images to excel sheet without clearing before images

I am using belwo code to render images
        HSSFPatriarch patriarch=sheet.createDrawingPatriarch();
        HSSFPicture picture = patriarch.createPicture(anchor1,index);



Thanks n Regards,
Chaitanya.DNVR
Hewlett-Packard(HP) Services.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to