S
SW
I have an ASP page that causes Excel to be loaded on the client PC
with the text sent from within the page. An excerpt of it is shown
below:
With Response
.ContentType = "application/vnd.ms-excel"
.Write(strResponse)
.Flush
.End
End With
where strResponse is the text to be displayed in Excel.
This all works fine and as expected, but the only problem is that the
file is opened in Excel on the client with a filename that reflects
the page from which the information originated, e.g:
http://myserver/mypage.asp
Is there any way of specifying the filename using MIME, for example if
I wanted the file to be loaded in Excel as "myfile.xls"?
Many thanks in advance
with the text sent from within the page. An excerpt of it is shown
below:
With Response
.ContentType = "application/vnd.ms-excel"
.Write(strResponse)
.Flush
.End
End With
where strResponse is the text to be displayed in Excel.
This all works fine and as expected, but the only problem is that the
file is opened in Excel on the client with a filename that reflects
the page from which the information originated, e.g:
http://myserver/mypage.asp
Is there any way of specifying the filename using MIME, for example if
I wanted the file to be loaded in Excel as "myfile.xls"?
Many thanks in advance