0

Hi!

I don't have access to office on the server. Does anyone know an open source way to generate an xls file for download? Or is there any way of generating a file that upon download will auto open into excel?

Thanks

ramil

2
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by ramiljoaquin
0

Have you tried using a tab delimited file and give it the xls extenstion ?
Excel will open the file and treate it like an xls file.

// Jerry

0

Have you tried using a tab delimited file and give it the xls extenstion ?
Excel will open the file and treate it like an xls file.

// Jerry

Hello Jerry,

Thank you for your response. I found one, I used these codes

this.Context.Response.Clear();
this.Context.Response.AppendHeader("Content-Type", "application/vnd.ms-excel");
this.Context.Response.AppendHeader("Content-disposition", "attachment; filename=my.xls");

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.