I found this code on intrernetu and it works perfectly :
Response.AppendHeader("content-disposition", "attachment;filename=FileEName.doc");
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.ContentEncoding = System.Text.Encoding.UTF8;
Response.Charset = "UTF-8";
Response.ContentType = "application/vnd.ms-word";
this.EnableViewState = false;
HttpContext.Current.Response.BinaryWrite(System.Text.Encoding.UTF8.GetPreamble());
StringWriter tw = new StringWriter();
HtmlTextWriter hw = new HtmlTextWriter(tw);
ceneword.RenderControl(hw);
Response.Write(tw.ToString());
Response.End();
But I'd like to make the changes in the existing code.
When i put these code in Button click it's automatically create a file and download same.
...
Go to the complete details ...