posted 18 years ago
Hello.
I am working on a site that allows the user to download information to an Excel file. If I use the following code:
.AppendHeader("content-disposition", "inline; filename=" & FileName)
The Excel file displays in the current browser window after I click "Open" in the File Download box that appears. However, the user wants the Excel file to appear outside the browser in another window. So I tried using:
.AppendHeader("content-disposition", "attachment; filename=" & FileName)
Using this code, the Excel file opens in its own Excel window just fine. The problem now is that the File Download box appears twice before I am able to view the spreadsheet.
Is there a way so that the File Download box appears only once, similar to what was happening before I made the code change?
Any help would be very much appreciated.
Thanks!
Carlo