Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem in appending new row in excel sheet using POI API

 
swapnel surade
Ranch Hand
Posts: 129
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I'm using POI API to read the .xls file, but when I want to append new line in the file there is no method in api to append at the end of file.
I found HSSFSheet.createRow(int rownum) method but it requires the line number to insert, for that i have to traverse the excel sheet to get the last line number.
Is there any better option to append new row to end of the file ?
 
swapnel surade
Ranch Hand
Posts: 129
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
using getRowNum() method can get the row count
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic