ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. 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>https://www.aspforums.net:443/Threads/125428/Export-ASPNet-GridView-with-image-to-Word-Error-The-picture-cant-be-displayed/https://www.aspforums.net:443/Threads/125428/Export-ASPNet-GridView-with-image-to-Word-Error-The-picture-cant-be-displayed/Thu, 01 Feb 2018 01:04:06 GMT