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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem opening xls file when exporting Datagrid in Excel

Status
Not open for further replies.

nastoski

Technical User
Oct 21, 2003
21
Hello,
I have a problem. Any ideas??

"I have used :
Response.AddHeader("content-disposition", "attachment; filename=myfile.xls")
This opens the file download dialog box with open and save options I have expected. The save button works great, the problem is when I click, Open, excel application opens and then an eror message is displayed something in these lines "the file you are looking for is not found in documents and settings/<user>/Local Settings/Temporary Internet Files/Contents.IE5...."
And also I oberved that, if I keep the excel application open when I click on the button, the Open button on file download works fine. It opens the excel file.
Can anyone help me solve the mistery??"

Thanks in advance!

Igor
 
I had the same problem a while ago - in my case the problem was with multiple accounts being created for the same user due to the user's settings being stored remotely (i.e. in documents and settings you would have nastoki, nastoki1,, nastoki2 etc). I think it then got itself into a bit of a pickle when looking for the relevant Temporary Internet Files folder.

Some of the time the error could be avoided by clearing out the temporary internet files folder on a regular basis.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top