On Fri, 23 Sep 2011, Omar wrote:
i 'm getting this error when i copy a sheet from workbook (XSSF) to another
workbook using poi3.7 and java class.

error :
java.lang.IllegalArgumentException: Cell index must be >= 0

The error is quite correct, cell indexes must be 0 or more

You'll need to look at your code and see why you've ended up with a negative cell number. Are you maybe trying to store the cell index in a short? If so, switch to an int and you should be fine

Nick

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

Reply via email to