Download Excel Template

R

Remy

Hi
We have a webpage where the user can download a dynamically generated
Excel Template.

We are using the
Response.ContentType = "application/vnd.ms-excel";
Response.AddHeader("Content-Disposition", "attachment;Filename=" +
fileName);

But the problem is, that the open dialog box uses the file type .xls
instead of .xlt. So users often save the template as normal workbook
and then the whole thing is obviously not working...
If the users just presses save, everything is fine cause the filename
ends with a .xlt, but if they change the filename and don't add the
extension, .xls is automatically added.

So, how can we make sure .xlt is used?

Thanks

Remy Blaettler
Helping you collaborate better
www.collaboral.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top