The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> asp page
emanprinting
post Jan 30 2009, 03:36 AM
Post #1





Group: Members
Posts: 5
Joined: 29-January 09
Member No.: 7,668



I have an asp page that should display the results of a query in Excel. It used to work on an old server for users in windows NT and Excel 97. Now we have moved to a different server with win XP and the users have win XP and Excel 2000, it no longer works. When the page is invoked, Excel opens but the spreadsheet is blank. I have tested to see that the content is there if I change the format to html and indeed it is there. At the top of my page I have the following two lines:

Response.Buffer = TRUE
Response.ContentType = "application/vnd.ms-excel"

If I add the line below, it downloads an excel file correctly:

Response.AddHeader "Content-Disposition", "attachment; filename=query.xls"
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 20th April 2024 - 02:09 AM