Create and Save ASP form Contents to Word Document
I wanted to save my form contents into a special given template in the doc format.although i am able to populate the contents at the required field however the file is not getting saved anywhere. after whole processing i am redirecting to a page but without the doc file bieng created. earlier when i was not using the redirect fn a window used to pop up asking me to whether to save or open it..Now i dont want this windows but also to automatcally save the file.
the code that i am currently using is
Response.ContentType = "application/msword"
Response.AddHeader "Content-Desposition", "attachment;filename=quotes.doc"
what changes should i make so taht it automatically saves and creates the file