• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Create Spreadsheet

 
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I need to create multiple worksheets in a spreadsheet/xls/excel file. I am using the jakarta POI/HSSF stuff, I am able to create the worksheets. But the size of the excel file for 10,000 rows is over 7MB. Where as if I create a single excel file with out using jakarta POI it is under 1MB.

My question is are there any other tools I can use to create worksheets from csv file directly without having to deal at cell level?

If you feel this question is not supposed to be listed here, feel free to bounce it to appropriate forum or might as well delete?

-Thanks
[ May 17, 2007: Message edited by: Harsha Jay ]
 
Ranch Hand
Posts: 694
Mac OS X Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you reading xls files, or writing them, or both?

Since this is a forum on Swing, which deals with user-interface, I should mention that you can display tabular data, similiar to a spread-sheet. The user-interface Component that does this is called a JTable. The data that a JTable displays is very flexible. You specify the data displayed in a JTable by using a TableModel interface or a class that implements the TableModel interface such as AbstractTableModel or DefaultTableModel or ResultSetTableModel.

So, you can use POI to read an xls file, put the data into any form that you wish and display it in a JTable. You could then save the data in your own file format.

I'm not sure if that answers your question or not.

Kaydell
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The jxcell spreadsheet component has a robust apis to deal with excel spreadsheet,it is also a swing grid component behaved like excel.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic