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






Regards
Promit
Posted 27-Feb-13 16:12pm
Updated 27-Feb-13 16:59pm
v2
Comments
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---- >http://www.codeproject.com/Articles/151789/Export-Data-to-Excel-Word-PDF-without-Automation-f
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Check this link this useful for you.
[^]
  Permalink  
v2
Rate this: bad
 
good
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");
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160919.1 | Last Updated 28 Feb 2013
Copyright © CodeProject, 1999-2016
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