ASPForums.Net RSS Feed additions to the content that appears on ASPForums.Net(c) 2019 All rights reserved.Export ASP.Net GridView with image to Word Error: The picture can't be displayed<p>Use the below code to save the file in server folder.</p> <pre class="brush: csharp">Response.ClearContent(); Response.Buffer = true; Response.ContentType = &#34;application/ms-word&#34;; StringWriter sw = new StringWriter(); HtmlTextWriter hw = new HtmlTextWriter(sw); GridView1.RenderControl(hw); string strPath = Server.MapPath(&#34;~/Files/Test.doc&#34;); StreamWriter sWriter = new StreamWriter(strPath); sWriter.Write(sw.ToString()); sWriter.Close();</pre> <p>&nbsp;</p>, 01 Feb 2018 01:04:06 GMT