Last post Aug 06, 2010 08:26 AM by email@example.com
Aug 06, 2010 02:33 AM|ismailadar|LINK
I have record all employee data in a table and i present data with an asp.net web page. when user enter EmployeeID Employee details are shown on a web page . this data also contains picture of selected employee. And i need to send all the data- that is belogn
selected employee- to excel.
In fact the most diffucelt point is saving pictures pf selected employee.
How can i achieve this?
thanx in advance
Aug 06, 2010 08:26 AMfirstname.lastname@example.org|LINK
bind a gridview/ listview with your datatable.
Response.Charset = "";
Response.ContentType = "application/vnd.xls";
System.IO.StringWriter stringWrite = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
these about line convert your images in excel sheet