Sudhir Ravindra wrote:Looks like you are trying to add content to an existing work book. Which version of excel was this sheet created in.
Try creating a new workbook as described in http://poi.apache.org/spreadsheet/quick-guide.html#CreateCells and see if you can reproduce the issue.
i am using Microsoft 2010 excel. my code is working fine with .xls files(till Microsoft 2007). but for .xlsx files, after writing into excel, if we try to open excel it is showing error as i mentioned above..