I have a gridview in web form that contains images resized to 40X40 px but when I export the gridview to excel the images return to there original size how I can export the gridview to excel with images resized to my desired size
this is the export code I use
Try
GridView2.AllowPaging = False
Response.Clear()
Response.AddHeader("content-disposition", "attachment;filename=ComputerParts.xls")
Response.ContentType = "application/ms-excel"
Response.ContentEncoding = System.Text.Encoding.Unicode
Response.BinaryWrite(System.Text.Encoding.Unicode.GetPreamble())
Dim sw As System.IO.StringWriter = New System.IO.StringWriter()
Dim hw As System.Web.UI.HtmlTextWriter = New HtmlTextWriter(sw)
txtSelectedComputer.RenderControl(hw)
txtEmployeeName.RenderControl(hw)
GridView2.RenderControl(hw)
Response.Write(sw.ToString())
Response.En ...
Go to the complete details ...