已答覆 Export Asp.net Table to Excel

  • Thursday, July 29, 2010 12:28 PM
     
     

    hello,

    i am developing a web application. Can someone help me with code to export data in an asp.net table to excel or csv format.

    thanks in anticipation.

All Replies

  • Friday, July 30, 2010 7:48 AM
    Moderator
     
     Answered

    Hi Tryxo

       Welcome to Microsoft Office for Developers forum! I'm glad to see your active participation and discussion in Microsoft Office for Developers forum. Here's a same issue with yours has been solved please refer to below link:

        (How to transfer html table data into excel sheet?) http://forums.asp.net/t/1214938.aspx

      Hope these will help you!  

       If you still have any doubt and concern about this issue, please let me know. If I misunderstood you, please kindly elaborate your question.


    Please Mark as Answered If this is helpful Or Un-Mark as Answered if it is not helpful.

    Best Regards,
    Yan Jun
    Microsoft Online Community Support

    • Marked As Answer by Tryxo Friday, July 30, 2010 3:29 PM
    •  
  • Friday, July 30, 2010 3:30 PM
     
     

    thank you, Yan Jun. it worked! i'm glad i have finally solved this problem; i've been on it for days.

    thanks alot.

    one more thing: is it possible for me to sort the data on the table by one of the columns before displaying it on the web page. its actually an asp table not html.

    pls assist me if u can.

  • Saturday, June 25, 2011 5:24 AM
     
     

    Hi,

    I have written a code to export datatable into excel without using any third party tool. please look at it.

    http://aspnet-ajax-aspnetmvc.blogspot.com/2011/06/export-datatable-to-excel-with-special.html

     

    Thanks,

    Mohan Prajapati

    http://aspnet-ajax-aspnetmvc.blogspot.com/

  • Saturday, June 25, 2011 3:15 PM
     
     
    for exporting asp.net table to excel, free solution to export data to EXCEL, WORD, PDF WITHOUT OLE AUTOMATION.
    http://www.codeproject.com/Tips/190144/Export-Database-to-Excel-PDF-HTML-RTF-XML-etc-for