Image1.ImageUrl = "data:image/jpg;base64," & Convert.ToBase64String(imgPhoto)
Response.AddHeader("content-disposition", "attachment;filename=Test.doc") Response.Cache.SetCacheability(HttpCacheability.NoCache) Response.ContentType = "application/ms-word " Response.Charset = "" Dim stringWrite As New System.IO.StringWriter() Dim htmlWrite As System.Web.UI.HtmlTextWriter = New HtmlTextWriter(stringWrite) ' Create a form to contain the grid ControlID.RenderControl(htmlWrite) Dim stringWrite1 As New System.IO.StringWriter() Dim htmlWrite1 As System.Web.UI.HtmlTextWriter = New HtmlTextWriter(stringWrite1) ' Create a form to contain the grid ImageLogo.RenderControl(htmlWrite1) Response.Write(stringWrite1.ToString() & stringWrite.ToString()) Response.[End]()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)