You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by "KHZ (SAW)" <ka...@sawag.com> on 2005/06/10 10:19:39 UTC
WG: Insert Image in Excel file using Apache POI
-----Ursprüngliche Nachricht-----
Von: Sushama Shringare [mailto:Sushama.Shringare@rave-tech.com]
Gesendet: Donnerstag, 9. Juni 2005 20:01
An: karl-heinz.zengerle@sawag.com
Betreff: Insert Image in Excel file using Apache POI
Hi,
I am using trying put image in excel file using Apache POI.
but i am not able to get as which verion of POI i shd use i got the code
for the same but its not working out.
Can u help me with this?
HSSFClientAnchor anchor;
anchor = new HSSFClientAnchor(0,0,0,255,(short)2,2,(short)4,7);
anchor.setAnchorType( 2 );
patriarch.createPicture(anchor, loadPicture(
"src/resources/logos/logoKarmokar4.png", wb ));
when i use above code it says setAnchorType(),loadPicture() methods does
not exist.I am using poi-2.5.1-final-20040804.jar
Thanks,
Sushama
Re: WG: Insert Image in Excel file using Apache POI
Posted by winston <wi...@mahindrabt.com>.
hi sushma,
you can use poi2.0 version which supports image by cloning method of
workbook.For this you have to create template which should have that image.
if you have any queries you can contact me.
---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List: http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/