PC Review


Reply
Thread Tools Rate Thread

converting dataset to excel ..

 
 
=?Utf-8?B?dmVua2F0?=
Guest
Posts: n/a
 
      21st Jan 2005
please give me tips or code to convert a dataset to excel sheet

 
Reply With Quote
 
 
 
 
W.G. Ryan eMVP
Guest
Posts: n/a
 
      21st Jan 2005
You can use a OleDbDataAdapter http://www.connectionstrings.com/ (Look for
Excel) and then just call Update. Otherwise, you're going to have to use
the Excel Library and walk the sheet, populating a dataset from there. It's
not very complex, just two loops, if you don't know the excel object model
it'sa pain inthe butt. here's an example
http://www.codeproject.com/dotnet/ExportExcelData.asp However if you put in
Excel to DataSet in google, there's quite a few more that are pretty much
ready to go.

HTH,

Bill

--
W.G. Ryan, MVP

www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
"venkat" <(E-Mail Removed)> wrote in message
news:8B5A33E6-A17C-445F-9091-(E-Mail Removed)...
> please give me tips or code to convert a dataset to excel sheet
>



 
Reply With Quote
 
Bernie Yaeger
Guest
Posts: n/a
 
      21st Jan 2005
Hi Venkat,

I Bill got your request backwards - you want to go from dataset to excel,
not the reverse. Here's a good example:

http://www.dotnetspider.com/technology/kbpages/950.aspx

HTH,

Bernie Yaeger

"venkat" <(E-Mail Removed)> wrote in message
news:8B5A33E6-A17C-445F-9091-(E-Mail Removed)...
> please give me tips or code to convert a dataset to excel sheet
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
converting a dataset to excel Robert Smith Microsoft Dot NET Framework Forms 1 7th Aug 2008 10:03 AM
Converting A Quarterly Dataset to Weekly Dataset =?Utf-8?B?RGFuIFRob21wc29u?= Microsoft Excel Programming 5 25th Nov 2005 09:27 PM
Regarding solving a problem in Converting Excel Data into Dataset =?Utf-8?B?UmFtYWtyaXNobmFuIE5hZ2FyYWphbg==?= Microsoft VB .NET 1 4th Aug 2005 01:18 PM
Converting a generic Dataset to a typed dataset William Gower Microsoft ASP .NET 2 26th Jul 2004 11:14 PM
Converting Untyped Dataset To Typed Dataset HKM Microsoft ADO .NET 1 31st Jan 2004 03:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:33 AM.