GridView匯出Excel

GridView資料匯出成Excel很簡單,但進階的後續應用就需要小技巧,把我這幾天查到用到的資料節錄在此,作為以後coding的參考,


1.在AJAX下匯出GridView資料至Excel
http://social.msdn.microsoft.com/Forums/zh-TW/236/thread/a2d72a78-111e-4f36-9938-4862ded96c33
http://forums.asp.net/p/1078756/1615430.aspx#1615430

 
2.解決GridView之AllowPaging=True時,匯出資料不完整之情況
http://forums.asp.net/t/1529149.aspx
http://geekswithblogs.net/azamsharp/archive/2006/01/09/65368.aspx

PS:解決user端使用office 2007的問題
http://blogs.msdn.com/erikaehrli/archive/2009/01/30/how-to-export-data-to-excel-from-an-asp-net-application-avoid-the-file-format-differ-prompt.aspx


3.GridView之ShowSelectButton=True時,避免匯出該欄位至Excel
http://www.velocityreviews.com/forums/t713508-gridview-to-excel.html


4.看起來不錯以後可能會用到的參考
Exporting Data From AJAX GridView with Image to Excel Sheet
http://www.aspdotnetcodes.com/Export_GridView_To_Excel_With_Image.aspx

GridView使用大全
http://blog.csdn.net/wangyang7/archive/2007/12/04/1917207.aspx

沒有留言: