Export a DataTable to Excel

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Daniel

    #1

    Export a DataTable to Excel

    I have a DataSet that consists of two Tables (made from TableAdapter
    Queries). I want to export each of these to an Excel spreadsheet
    programmaticall y after the Fill method completes.

    How do I do this? Using VB 2005 Express.

    Thanks!
    Daniel

  • rowe_newsgroups

    #2
    Re: Export a DataTable to Excel

    You should look up excel's querytables. Create a SQL command that would
    pull the necessary info from the dataset and then base the querytable
    off of that.

    Thanks,

    Seth Rowe


    Daniel wrote:
    I have a DataSet that consists of two Tables (made from TableAdapter
    Queries). I want to export each of these to an Excel spreadsheet
    programmaticall y after the Fill method completes.
    >
    How do I do this? Using VB 2005 Express.
    >
    Thanks!
    Daniel

    Comment

    Working...