How to convert DataTable to a csv, txt or xls file using VB2005?

I used a custom made class for converting a DataTable to a csv file using VB2003.

Is there anyway of conevrting DataTable to a csv, txt ot xls file using VB2005, without having to write a custom class? Is there any namespace with contains tools for doing this in .NET Framework 2.0?

Thanks

[398 byte] By [JobLot] at [2007-12-16]
# 1
A function to perform this operation would take, at a guess, 10 to 15 lines of code. It's really no big deal.
jmcilhinney at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 2

Hi Job Lot,

Here is the code you are looking for:
http://www.devx.com/vb2themax/Tip/19703
http://www.codeproject.com/useritems/ExportXLSCSV.asp

Regards,
Vikram

Vikram at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 3
Thanks

I do have a custom made class for doing it. Wanted to check if there is any built in support in .NET Framework 2.0

JobLot at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 4
Hi,

There is nothing directly included as part of the .NET Framework for doing this.

Regards,
Vikram

Vikram at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...