forcing Excel to open file

S

shank

I have the following code at the top of my page. Is there a way to force
Excel to open the spreadsheet? Presently, it opens within the browser
window. I know it can be saved etc., but I would rather have Excel receive
the data.

<% Response.contenttype = "application/vnd.ms-excel" %>
<% Response.AddHeader "Content-Disposition", "filename=" &
Request.Form("FileName") & ".xls" %>

thanks
 

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

Similar Threads

Exporting to Excel 0
generate Excel balks 5
Exporting to Excel (xlsx files) 5
Output to Excel 2007 0
Exporting images to excel? 1
gridview to excel 6
Export to Excel query 2
How Excel file is generated? 1

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,052
Latest member
KetoBeez

Latest Threads

Top