View Single Post
  #9 (permalink)  
Old January 14th, 2005, 02:13 PM
Andraw Andraw is offline
Friend of Wrox
 
Join Date: Jan 2005
Location: Houston, TX, USA.
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Matt,
I also think the problem is werid. my boss want me to show it on the screen, and also user can save it on the user machine, at the same time, the file is nt save in the server side.
Now I decide to do like this:
Create a report.doc on the server side, then ask the user to save it, after that delete at once. How can I do that? i have following codes:

  strFileName = "reportWord.doc"
  Response.ContentType = "application/msword"
  Response.AddHeader "Content-isposition", "attachement;filename=""" & strFileName & """"

Suppose there is a dialog box appear to ask user to save it, but nothing happen, can anybody give me the completed code to ask user to save the file? tks

Andraw


Reply With Quote