Free Support Forum - aspose.com

How to convert images from aspx page to ms word

i am working on ms automation..

First i am displaying all data in aspx page ( page contains datagrids ,tables , and images ) then using the below code i save that file in ms word.. while saveing its not taking the images...

When i open the word doc its not displaying images... How to convert the images from aspx to ms word..

Can any one give the idea......

This is the code

btnsave.Visible=false;

string CenterName = Session["CenterName"].ToString();

string strWeekDate;

strWeekDate=System.DateTime.Today.ToShortDateString();

string date=Convert.ToDateTime(strWeekDate).ToString("yyyy-MM-dd").ToString();

string ConvtdocFile= CenterName + date + ".doc";

Response.Clear();

Response.Charset = "";

Response.Clear();

Response.Charset = "";

Response.ContentType = "application/vnd.ms-word";

Response.AddHeader("Content-Disposition", "inline;filename="+ConvtdocFile);

System.IO.StringWriter sw=new System.IO.StringWriter();

System.Web.UI.HtmlTextWriter hw=new System.Web.UI.HtmlTextWriter(sw);

Page.RenderControl(hw);

Response.Write(sw.ToString());

Response.End();

Thank's

Prasanth..

vaniprasanth@yahoo.com

Hi,

Thank you for considering Aspose.

I can't see how Aspose.Word is involved in the process. Where is it?