Click here to Skip to main content
13,046,726 members (80,501 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Dear Friends,
I want to export data from DataTable to Excel in windows based VB.NET Application.

Posted 27-Feb-13 16:12pm
Updated 27-Feb-13 16:59pm
N@veen.S 27-Feb-13 22:54pm
Your Question is not clear
april88t 6-Mar-13 20:31pm
their is some examples found in this site itself just visit this link---- >
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Check this link this useful for you.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Hi,i try to search this code.. i'm not really sure its work this,but you try it.. thank you?

you could try with this Excel C# / VB.NET library. They send .NET 1.1 library on demand.

Here is a sample Excel C# code how to export DataSet to Excel:

var ef = new ExcelFile();

foreach (DataTable dataTable in dataSet.Tables)
ef.Worksheets.Add(dataTable.TableName).InsertDataTable(dataTable, 0, 0, true);

ef.SaveXlsx(dataSet.DataSetName + ".xlsx");

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

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 28 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100