This because your code is calling the main(String[] args)  method of the
class and it expects to receive an array of type String that contains
exactly two elements. I am not at all sure you want to be calling this
method as it creates a new workbook and adds an image - the contents of
imageFile - into a newly created worksheet and then saves the whole away
under the name, and to the location, specified by contents of outputFile.

More typically, you would call one of the overloaded addImageToSheet()
methods passing all of the necessary arguments across to it's parameters.





--
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/ERROR-Usage-AddDimensionedImage-imageFile-outputFile-tp5712073p5712075.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]

Reply via email to