Response.Clear() Response.Buffer = True Response.ContentType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document" Response.AddHeader("Content-Disposition", "attachment; filename=WORK_ORDER.docx") Response.ContentEncoding = System.Text.Encoding.UTF7 Response.Charset = "" EnableViewState = False Dim writer As New System.IO.StringWriter() Dim html As New System.Web.UI.HtmlTextWriter(writer) Table1.RenderControl(html) Response.Write(writer) Response.End()
Response.WriteFile()
Response.Write()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)