Hello, I have this code that generates a word document of the current page to download, it works great.
HttpContext.Current.Response.ContentType = "application/msword";
HttpContext.Current.Response.AddHeader("Content-Disposition", "inline;filename=IR-" + lblReportNumber.Text + ".doc");
HttpContext.Current.Response.Write(this.Page.ToString());
But I need I now need to save that file to the server instead of download to the client, for instance save it in c:\inetpub\wwwwroot\website\wordfiles\somewordfile.doc
How can I do this?
Thank you!
...
Go to the complete details ...