This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Java in General and the fly likes Excel Sheets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Excel Sheets" Watch "Excel Sheets" New topic
Author

Excel Sheets

Ahmed Haboubi
Ranch Hand

Joined: Oct 21, 2000
Posts: 36
Hi,
I need to generate an Excel sheet from a Java application. Is this possible? If so, what is the method?
Thanks in advance.
Ahmed.
Sean MacLean
author
Ranch Hand

Joined: Nov 07, 2000
Posts: 621
Do a search on all the forums and you should find lots of info on this topic. I believe it is a simple as 'pipe' or comma delimiting a text file.
Sean
karl koch
Ranch Hand

Joined: May 25, 2001
Posts: 388
hi,
easiest way is to generate a CSV file (comma separated values).
create a text file with .csv extension and write your values separated by ',' or ';' in it. like:
10.0990, 9090.1,1000
23, 3434.322, 9090909090
and so on.
if you need to write real excel stuff with formulas and formating, then this wont work.
hope this helps.
karl
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Excel Sheets