This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Excel Generation using POI

 
Ginnakunta Laxmi Narayan
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can i generate multiple sheets in the same excel file using POI.

Please help me.

Bye
Narayan
 
Amber Vaidya
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure you can ...

Create a workbook and then create sheets in the workbook


// create a new workbook
HSSFWorkbook wb = new HSSFWorkbook();

// create new sheets
HSSFSheet sheet1 = wb.createSheet();
HSSFSheet sheet2 = wb.createSheet();
HSSFSheet sheet3 = wb.createSheet();
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic