TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ebru Kapan
NA
16
1.3k
How can I export images from ASPxGridView to excel in .net?
Nov 23 2017 9:07 AM
protected void btnXlsExport_Click(object sender, EventArgs e)
{
//GridExporter.WriteXlsToResponse();
Response.Clear();
Response.Buffer = true;
Response.ContentType = "application/vnd.ms-excel";
Response.AddHeader("content-disposition", "attachment;filename=MyFiles.xls");
Response.Charset = "";
this.EnableViewState = false;
System.IO.StringWriter sw = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter htw = new System.Web.UI.HtmlTextWriter(sw);
ASPxGridView1.RenderControl(htw);
Response.Write(sw.ToString());
Response.End();
}
Reply
Answers (
1
)
write code using xml for process
Generate a PDF document one by one