Exporting Data from App To Excel c#

Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Apr 2006
Posts: 88
Reputation: blacklocist is an unknown quantity at this point 
Solved Threads: 2
blacklocist blacklocist is offline Offline
Junior Poster in Training

Exporting Data from App To Excel c#

 
0
  #1
Apr 14th, 2006
Hi,

I am importing data from excel (don't know yet I am going to do that) and export it back into excel. I don't want to have users to import data using excel (due to lack of intelligence) and also it would be faster and more streamline.

I already had a complete app that did it all except I can't get it to run on any other machines. I used office PIA and that is just suck a hassle. I don't want to go down that road again. Now I have been reading posts on how to import data using OLE DB connection and it looks pretty simple.

Now what I am worried about is pushing data back into excel. How does that work? Also I came across a post that said OLD DB isn't for Excel but was originally for Access. Well how ever it falls it anyone could point me in the right directions (Except for Office PIA) I would be grateful.

Thanks!
Reply With Quote Quick reply to this message  
Join Date: Dec 2003
Posts: 2,414
Reputation: alc6379 has a spectacular aura about alc6379 has a spectacular aura about alc6379 has a spectacular aura about 
Solved Threads: 123
Team Colleague
alc6379's Avatar
alc6379 alc6379 is offline Offline
Cookie... That's it

Re: Exporting Data from App To Excel c#

 
0
  #2
Apr 15th, 2006
FYI: OLEDB is for both Excel and Access. Maybe this article will help:

http://support.microsoft.com/default...b;EN-US;257819

Basically, once you start using OLEDB, you can treat the whole deal like it's a database. As such, you'd pull the data out using a SQL SELECT command (that fills a dataset), then you'd edit the data in the dataset, and you'd perform some steps that would Update the contents of the "database".

...That's how the data gets placed back in. Once you start using OLEDB, you can insert rows, update them, delete, etc, just like a SQL database.

That's the most that I could tell you-- I've just started fooling around with ADO DataSets using OLEDB provider for Access. It works great, though. There are whole books on ADO that are available through your favorite tech book retailer-- I suggest you check them out. But for starters, that link I provided might help.
Alex Cavnar, aka alc6379
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 88
Reputation: blacklocist is an unknown quantity at this point 
Solved Threads: 2
blacklocist blacklocist is offline Offline
Junior Poster in Training

Re: Exporting Data from App To Excel c#

 
0
  #3
Apr 18th, 2006
Thanks A Bunch Man!!!!






Originally Posted by alc6379
FYI: OLEDB is for both Excel and Access. Maybe this article will help:

http://support.microsoft.com/default...b;EN-US;257819

Basically, once you start using OLEDB, you can treat the whole deal like it's a database. As such, you'd pull the data out using a SQL SELECT command (that fills a dataset), then you'd edit the data in the dataset, and you'd perform some steps that would Update the contents of the "database".

...That's how the data gets placed back in. Once you start using OLEDB, you can insert rows, update them, delete, etc, just like a SQL database.

That's the most that I could tell you-- I've just started fooling around with ADO DataSets using OLEDB provider for Access. It works great, though. There are whole books on ADO that are available through your favorite tech book retailer-- I suggest you check them out. But for starters, that link I provided might help.
Reply With Quote Quick reply to this message  
Join Date: Dec 2003
Posts: 2,414
Reputation: alc6379 has a spectacular aura about alc6379 has a spectacular aura about alc6379 has a spectacular aura about 
Solved Threads: 123
Team Colleague
alc6379's Avatar
alc6379 alc6379 is offline Offline
Cookie... That's it

Re: Exporting Data from App To Excel c#

 
0
  #4
Apr 19th, 2006
Originally Posted by blacklocist
Thanks A Bunch Man!!!!
No problem. By the way, check the other thread you posted. I think this conversation happens to be REALLY relevant to the topic there.
Alex Cavnar, aka alc6379
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 88
Reputation: blacklocist is an unknown quantity at this point 
Solved Threads: 2
blacklocist blacklocist is offline Offline
Junior Poster in Training

Re: Exporting Data from App To Excel c#

 
0
  #5
Apr 20th, 2006
Maybe....maybe not
cough*it is relevant*cough
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 3
Reputation: mickwen is an unknown quantity at this point 
Solved Threads: 1
mickwen mickwen is offline Offline
Newbie Poster

Re: Exporting Data from App To Excel c#

 
-1
  #6
May 29th, 2006
Hello,
You can try to use the professional .net component for ms excel.
It support MS Excel , MS Word, HTML , XML , PDF , MS Access ,DBF, SQL Script, SYLK,DIF,CSV ,MS Clipboard format and more.
link removed by moderator
good luck!
Last edited by alc6379; Jun 2nd, 2006 at 12:51 am.
Reply With Quote Quick reply to this message  
Join Date: Dec 2003
Posts: 2,414
Reputation: alc6379 has a spectacular aura about alc6379 has a spectacular aura about alc6379 has a spectacular aura about 
Solved Threads: 123
Team Colleague
alc6379's Avatar
alc6379 alc6379 is offline Offline
Cookie... That's it

Re: Exporting Data from App To Excel c#

 
0
  #7
Jun 2nd, 2006
Originally Posted by mickwen
Hello,
You can try to use the professional .net component for ms excel.
It support MS Excel , MS Word, HTML , XML , PDF , MS Access ,DBF, SQL Script, SYLK,DIF,CSV ,MS Clipboard format and more.
link removed by moderator
good luck!
Sure, you could probably do that, but I wouldn't advise following the advice of someone who just bumped a somewhat old thread to push a for-pay feature that is already available in the .NET framework, mostly. Sounds a bit spammy, if you ask me.
Alex Cavnar, aka alc6379
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C# Forum
Thread Tools Search this Thread



Tag cloud for C#
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC