Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Write Excel file from Java

Reply
Thread Tools

Write Excel file from Java

 
 
David McCulloch
Guest
Posts: n/a
 
      06-05-2004
QUESTION:
What options are available for writing a very simple Excel file from Java?

BACKGROUND:
My application requires minimal formatting beyond what a delimited CSV file
could support:
* Colored header row.
* Some "text" cells (some numbers must retain leading zeroes).
* Reasonably sized columns (could be static width by column).

I would like to keep everything as vanilla as possible (i.e., simple code,
no third-party utilities, etc.).

FYI, I am currently using HTML, but Excel 2000 takes 15-minutes to open an
HTML table with about 3,000 rows and 30-columns. When saved as a true Excel
file, Excel opens that file in under 1-second.

Thanks for any help!

Dave


 
Reply With Quote
 
 
 
 
Thomas Kellerer
Guest
Posts: n/a
 
      06-05-2004
http://jakarta.apache.org/poi/index.html


David McCulloch schrieb:
> QUESTION:
> What options are available for writing a very simple Excel file from Java?
>
> BACKGROUND:
> My application requires minimal formatting beyond what a delimited CSV file
> could support:
> * Colored header row.
> * Some "text" cells (some numbers must retain leading zeroes).
> * Reasonably sized columns (could be static width by column).
>
> I would like to keep everything as vanilla as possible (i.e., simple code,
> no third-party utilities, etc.).
>
> FYI, I am currently using HTML, but Excel 2000 takes 15-minutes to open an
> HTML table with about 3,000 rows and 30-columns. When saved as a true Excel
> file, Excel opens that file in under 1-second.
>
> Thanks for any help!
>
> Dave
>
>

 
Reply With Quote
 
 
 
 
Roedy Green
Guest
Posts: n/a
 
      06-05-2004
On Sat, 5 Jun 2004 12:39:14 -0500, "David McCulloch" <|@|.|> wrote or
quoted :

>QUESTION:
>What options are available for writing a very simple Excel file from Java?


see http://mindprod.com/jgloss/excel.html it will point you to:


see http://mindprod.com/products.html#CSV for a class to write simple
comma-separated variable files.

To write spreadsheets with embedded formulae, see
http://mindprod.com/jgloss/poi.html


--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
 
Reply With Quote
 
bort
Guest
Posts: n/a
 
      06-06-2004

For a "very simple" excel file, all you need to do is set your delimiter to
tabs ('\t') instead of commas, and save the file with an .xls extension.

bort

"David McCulloch" <|@|.|> wrote in message
news:aynwc.37950$...
> QUESTION:
> What options are available for writing a very simple Excel file from Java?
>
> BACKGROUND:
> My application requires minimal formatting beyond what a delimited CSV

file
> could support:
> * Colored header row.
> * Some "text" cells (some numbers must retain leading zeroes).
> * Reasonably sized columns (could be static width by column).
>
> I would like to keep everything as vanilla as possible (i.e., simple code,
> no third-party utilities, etc.).
>
> FYI, I am currently using HTML, but Excel 2000 takes 15-minutes to open an
> HTML table with about 3,000 rows and 30-columns. When saved as a true

Excel
> file, Excel opens that file in under 1-second.
>
> Thanks for any help!
>
> Dave
>
>



 
Reply With Quote
 
Liz
Guest
Posts: n/a
 
      06-07-2004

"bort" <> wrote in message
news:wYGwc.71194$ able.rogers.com...
>
> For a "very simple" excel file, all you need to do is set your delimiter

to
> tabs ('\t') instead of commas, and save the file with an .xls extension.


nope, the OP wants color

>
> bort
>
> "David McCulloch" <|@|.|> wrote in message
> news:aynwc.37950$...
> > QUESTION:
> > What options are available for writing a very simple Excel file from

Java?
> >
> > BACKGROUND:
> > My application requires minimal formatting beyond what a delimited CSV

> file
> > could support:
> > * Colored header row.
> > * Some "text" cells (some numbers must retain leading zeroes).
> > * Reasonably sized columns (could be static width by column).
> >
> > I would like to keep everything as vanilla as possible (i.e., simple

code,
> > no third-party utilities, etc.).
> >
> > FYI, I am currently using HTML, but Excel 2000 takes 15-minutes to open

an
> > HTML table with about 3,000 rows and 30-columns. When saved as a true

> Excel
> > file, Excel opens that file in under 1-second.
> >
> > Thanks for any help!
> >
> > Dave
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
From an ASP page, is there a way write to an EXCEL file without having EXCEL installed on the IIS machine ? fniles ASP General 6 04-27-2009 10:33 PM
Excel UPDATE statement doesn't write to the Excel File RnkG ASP .Net 0 12-22-2008 05:37 PM
Re: write float to Excel with pyExcelerator write John Machin Python 0 03-03-2008 12:14 PM
Re: write float to Excel with pyExcelerator write Peter Otten Python 0 03-03-2008 10:43 AM
Problem with Excel reports ::::Excel 2003 Migration To Excel 2007 =?Utf-8?B?c2hhc2hhbmsga3Vsa2Fybmk=?= ASP .Net 15 10-24-2007 01:34 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57