Yes, now the dialog box can appear by using the following codes:
'''''''''''''''''''''''''''''''''''''''''
set fso = createobject("scripting.filesystemobject")
set objTS = fso.OpenTextFile(docFileName,1)
strFileName = "reportWord.doc"
response.addHeader "Content-type","application/msword" Response.AddHeader "Content-Disposition", "attachment;filename=""" & strFileName & """"
Response.BinaryWrite (objTS.ReadAll)
Response.Flush
'''''''''''''''''''''''''''''''''''''''''''''''''' '''''
but when I open the saved file, it's the binary data, I cann't read it, why?????
I also try to use: Set Stream = Server.CreateObject("ADODB.Stream") said like the link:
http://www.psacake.com/web/if.asp, but get an error? Is there any way that I can save the word file in the client side, with all the logo/header/footer?
Thanks
Andraw