Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export Html table to Excel Sheet. 1

Status
Not open for further replies.

jagi

Programmer
Mar 13, 2005
48
US
Hi all,

Can anyone give me some links that can help me understand how to export HTML table to Excel Wroksheet?
Actually I have an option for the user to save the page with table and I would like to save it as an excel file when the user clicks on 'save'. Can anyone tell me how I can achieve this?

Thanks in advance.
 
using asp you can try place this at the top of the page

Code:
<%Response.ContentType = "application/vnd.ms-excel"%>
 
This is not an html question, since html cannot do anything of the sort. As steven290 said, you could use a server-side language to stream the contents into excel sheet. If you have no server side language available, your best bet is to use save as... and hope there's something there Excel can use.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top