.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Export SQL Data to Microsoft Excel (using Visual Studio 2008, c#) in asp.net

Posted By: bhanu     Posted Date: November 24, 2010    Points:2   Category :ASP.Net
I have list of tables in my database.

how to retrieve list of tables including data into databound control and

how to export the tables data to excelsheet individually..

a)Gets the list of tables within the database
b)Gets data
c)Exports the data to excel worksheets (there are 2 methods defined (1) range method (2) cell by cell
d.) Saves the excel sheet



plz provide the code for above requirements as soon as possible

Responses
Author: Sajid P K             
Posted Date: November 24, 2010     Points: 5   

bhanu ,

Please refer following two articles. I think it will solve your problem.

http://www.dotnetspark.com/kb/3107-how-to-write---data-table-to-excel---fastest.aspx

http://www.dotnetspark.com/kb/3106-how-to-write-data-table-to-excel---copy.aspx

if you have any problem... Let me know.



Regards,
Sajid P K



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend