Dim filefullname As System.IO.FileInfo = New System.IO.FileInfo(theFileName) Response.Clear() Response.AddHeader("Content-Disposition", "attachment; filename=Observation_Report.docx") Response.AddHeader("Content-Length", filefullname.Length.ToString()) Response.ContentType = "application/octet-stream" Response.WriteFile(filefullname.FullName) Response.Flush() System.IO.File.Delete(theFileName) Response.End()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)