The moose likes Servlets and the fly likes HTML 2 Excel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "HTML 2 Excel" Watch "HTML 2 Excel" New topic

HTML 2 Excel

Jolly Ag

Joined: Oct 30, 2002
Posts: 22
Hi Folks
Can you ppl please give some idea about how can a HTML file be converted into Excel file .

Jesse Beaumont
Ranch Hand

Joined: May 30, 2002
Posts: 43
I'm getting a lot of milage out of this answer Third time in two days...
If you set the content-type to application/vnd.ms-excel and only pass an html table to the browser this will open Excel containing the data in your table. Be sure not to include any html tags other than the table (i.e. no <html>, <head>, <body>, etc)

---<br />Time flies like an arrow,<br />Fruit flies like a banana
Consider Paul's rocket mass heater.
subject: HTML 2 Excel
Similar Threads
Export to Excel Dialog Box Always Pops Up
Excel-format report
display of japanese characters in Excel report
How to output HSSF excel data in browser?
create, read and write ms excel through j2ee( jsp, ejb, servlets)