Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Everyone...
I have written the code for exporting gridview data to excel..
But its only exporting data on 2003 because i have written following in my code

C#
Response.AddHeader("content-disposition", string.Format("attachment; filename={0}", "Customers.xls"));


what should i do if i want to export data both in 2003 and 2007 excel sheet..
thanks in advance..
Posted

Hi,


please check with this links ,this might be help for you

Export gridview data to excel 2007 format[^]
http://forums.asp.net/t/1221467.aspx[^]
 
Share this answer
 
 
Share this answer
 
Please follow the link

Export Gridview Data to Excel in ASP.NET[^]
Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900