• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Sylvia Wang
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic