Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#ASP.NET
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
 
 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 10-Jan-13 0:23am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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[^]
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 5

Please follow the link
 
Export Gridview Data to Excel in ASP.NET[^]
Thanks
  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Shai Vashdi 1,588
1 OriginalGriff 528
2 Manas Bhardwaj 383
3 Damith Weerasinghe 330
4 Tadit Dash 315
0 Sergey Alexandrovich Kryukov 9,575
1 OriginalGriff 6,006
2 Peter Leow 4,500
3 Maciej Los 3,540
4 Abhinav S 3,513


Advertise | Privacy | Mobile
Web01 | 2.8.140415.2 | Last Updated 10 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid