hi,
I want to take export of gridview data to ppt, i tried some codes but ppt is getting corrupted while opening... can anyone help please, i tried below code for exporting..
GridView1.AllowPaging
=
false
;
GridView1.DataBind();
Response.Clear();
Response.AddHeader(
"content-disposition"
,
"attachment;filename=FileName.ppt"
);
Response.Charset
=
""
;
Response.ContentType
=
"application/vnd.ppt"
;
System.IO.StringWriter
stringWrite =
new
System.IO.StringWriter();
System.Web.UI.HtmlTextWriter
htmlWrite =
new
HtmlTextWriter(stringWrite);
GridView1.RenderControl(htmlWrite);
Response.Write(stringWrite.ToString());
Response.End();