Dilley, Hara wrote:

The Poi quick guide has the following code for loading an image
patriarch.createPicture(anchor, loadPicture( "src/resources/logos/logoKarmokar4.png", wb ));
I have downloaded poi 3.0 and I get the message that the method loadPicture is 
not defined.
What version of poi is the quick guide written for? I thought 3.0 is the latest 
poi version.

It's not a POI methode, it's a methode from an example (took me some time to find that out ;-))

Look at the following example-code:
http://cvs.apache.org/viewcvs.cgi/jakarta-poi/src/examples/src/org/apache/poi/hssf/usermodel/examples/OfficeDrawing.java?rev=1.5&view=markup


Has anyone been successful in importing an image from a file into a spreadsheet 
using poi?


I could import images as shown in the example, but I couldn't add them with 100% size (1:1 pixels).( http://thread.gmane.org/gmane.comp.jakarta.poi.user/7088 ) If you or someone else knows a way how to do it, I'd be very happy for a hint!

For now I had to switch to http://jexcelapi.sourceforge.net/ which solves this and some other problems for me (shared formulas, get RGB-color from cell).



best regards
Andreas


PS: there are more useful examples: http://cvs.apache.org/viewcvs.cgi/jakarta-poi/src/examples/src/org/apache/poi/hssf/usermodel/examples/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/

Reply via email to