Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Downloading Excel file (containg BAR Chart) from JSP

 
Rakesh Vende
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,

I have one Excel file containing BAR Chart in it(dynamically genereted).
I want to download this Excel file from jsp file. But I cant.

Actually my problem is When I download this file. My downloaded file doesnt have CHART in it. or displays Binary data(Garbage).

Please help me.

Thanks in advance.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
Rakesh Vende
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bean

response.setContentType("aapplication/vnd.ms-excel");
response.setHeader("ContentDisposition", "Attachment;filename=Report.xls");

I have used this code to download .
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!