Gerard
Gerard

Reputation: 13427

Excel sheet as return value for a WCF service?

Is it possible?

Would you advise a better way?

Do you know an example?

Upvotes: 0

Views: 759

Answers (1)

Max
Max

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

Related Questions