Hi,
I am inserting image into the editor using image Manager and writing some contents in the editor.I would like to export the editor content with images to word document.
Am using these below code to export to word
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.Charset = "";
HttpContext.Current.Response.ContentType = "application/msword";
string strFileName = "";
strFileName = "GenerateDocument" + ".doc";
HttpContext.Current.Response.AddHeader("Content-Disposition",
"inline;filename=" + strFileName);
StringBuilder strHTMLContent = new StringBuilder();
strHTMLContent.Append("<body lang=EN-US >");
strHTMLContent.Append(RadEditor1.Content);
strHTMLContent.Append("</body>");
HttpContext.Current.Response.Write(strHTMLContent);
HttpContext.Current.Response.End();
HttpContext.Current.Response.Flush();
But I am not able to export the image into word doc.
please solve my problem.I have to export the image into the word document
Thanks for any help
I am inserting image into the editor using image Manager and writing some contents in the editor.I would like to export the editor content with images to word document.
Am using these below code to export to word
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.Charset = "";
HttpContext.Current.Response.ContentType = "application/msword";
string strFileName = "";
strFileName = "GenerateDocument" + ".doc";
HttpContext.Current.Response.AddHeader("Content-Disposition",
"inline;filename=" + strFileName);
StringBuilder strHTMLContent = new StringBuilder();
strHTMLContent.Append("<body lang=EN-US >");
strHTMLContent.Append(RadEditor1.Content);
strHTMLContent.Append("</body>");
HttpContext.Current.Response.Write(strHTMLContent);
HttpContext.Current.Response.End();
HttpContext.Current.Response.Flush();
But I am not able to export the image into word doc.
please solve my problem.I have to export the image into the word document
Thanks for any help