Reputation: 13427
Is it possible?
Would you advise a better way?
Do you know an example?
Upvotes: 0
Views: 759
Reputation: 7119
You can easily do this. Set the Content-Type
header equal to application/vnd.ms-excel
and then set a Content-Disposition
to something similar to this: Content-Disposition: attachment; filename="filename_here.xls"
and then return your Excel data.
Upvotes: 3