Get your CodeRanch badge!*
The moose likes Servlets and the fly likes how to save web page in Excel file to client's local? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to save web page in Excel file to client Watch "how to save web page in Excel file to client New topic
Author

how to save web page in Excel file to client's local?

Sylvia Wang
Ranch Hand

Joined: Apr 10, 2001
Posts: 53
Hi,
anybody can help on this ?
I want to show a "save" button on my webpage, once clicked, to popup a save as dialog box, so the user can select to save the web page's content in an Excel file on their local drive.
Thanks a lot.
mou haj
Ranch Hand

Joined: Sep 12, 2001
Posts: 81
what do you mean by saving the contents of a webpage in an Excel file
is the data excel data or csv data??? other wise how can you down load.
If you have proper data you can prompt the open?save option by setting content type
response.setContentType("application/vnd.ms-excel; charset=UTF-16");
response.setHeader("Content-Disposition","attachment;filename="ALLRESULT.CSV");

Try this
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to save web page in Excel file to client's local?
 
Similar Threads
IE file save as
opening an excel file through Java
Automate Excel Loading into Database
How do i save a file that has been generated using JSP in excel format .
Outputting sql output to spreadsheet