-
saving html table into excel
Hi all,
I am generating one html table by fetching the data from backend now i want to save it in the excel file means how to download that content into excel on the client machine
Regards
Rahul Vyas
-
you will have to set the content-type of your response by setting it to "application/???", have a look at the mimetype definitions in the internet (eg. rfc). when you set the right mimetype to the clientside, you can stream the binary excelsheet through the servlets ouputstream. however, an easier way is to send it as a comma seperated values.
-
by the way, the displaytag jsp library at http://displaytag.sourceforge.net/ supports to generate fantastic sortable views of any data (eg from database), with support of conversion to csv, xml and many other formats. it also supports paging for results. give it a try.
Similar Threads
-
By dhaya in forum Database
Replies: 11
Last Post: 08-25-2003, 05:24 PM
-
Replies: 2
Last Post: 11-19-2002, 07:28 PM
-
By Mahendra Gunawan in forum VB Classic
Replies: 1
Last Post: 05-02-2001, 07:55 AM
-
By Mario Morin in forum Database
Replies: 0
Last Post: 01-12-2001, 10:50 AM
-
By John in forum VB Classic
Replies: 2
Last Post: 04-14-2000, 01:50 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks