Y.G.J
Y.G.J

Reputation: 1108

download excel file with response.contenttype

can a download of excel file with response. contenttype be proccessed without the saveas window so the file will be opened automaticly?

Upvotes: 1

Views: 780

Answers (1)

Jim
Jim

Reputation: 2146

In general, no. I think the only way this will work is if each and every client had an appropriate plug-in (like Adobe has for Acrobat), so that the browser would know what to do with the content.

With out the plug-in, the best you can do is have the Open/Save As/Cancel dialog open up, or, specify that via the content-disposition that this is an attachment and always have the Save As dialog open up, optionally with a predefined file name.

Upvotes: 2

Related Questions