Hi,
How to Save images in ms word file when it is downloaded from asp.net application. I have used the following code to convert the html page into ms word file. but i'm not able to save the images from html to doc file. Please suggest me how to save an image from a html to doc file.
I have used the following Code to convert HTML into doc file:
Response.Clear();
Response.Buffer = true;
Response.ContentType = "application/vnd.ms-word";
Response.AddHeader("Content-Disposition","attachment; filename="+Request.QueryString["SetNo"].ToString()+".doc");
StringBuilder str = new StringBuilder();
str.Append("<table cellpaddin=0 cellspacing=0 border=0 width=100%>");
str.Append("<tr>");
str.Append("<td align=center>");
str.Append("<img src='../Images/Img1.gif' border='0'>");
str.Append("</td>");
str.Append("</tr>");
str.Append("</table>");
Response.write(str.toString());