Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending Excel Content to Browser with ASP

Status
Not open for further replies.

ToddWW

Programmer
Mar 25, 2001
1,073
US
I used the following example of how to send Excel content to a browser using ASP.


Notice that the article applies to visitors with Excel 97, 2000 or 2002. I have Excel 2002.

I removed the database connection, inputed some static data and ran the test. It works great. However, at the end of the article it mentions this.

If Microsoft Excel 97 is installed on the client computer, Microsoft Excel displays the data inside the browser.

Only, when I ran the ASP page, I was prompted to download or open the file (instead of displaying the data in the browser window). Furthermore, the previous document in the browser window did not change. This is fine for me because my goal is to deliver an Excel file to the visitor using ASP and this provides that solution. However, how can I be sure, from visitor to visitor, that they will be either prompted for download or have the Excel document loaded inside the browser window.

Here's the funny part. When I click on a direct link to and .xls file from the same computer, it DOES load the excel document into the browser window.

Any ideas..

TW
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top