?
Solved

Manipulate an Excel spredsheet (csv) file with C#

Posted on 2010-08-29
4
Medium Priority
?
492 Views
Last Modified: 2012-05-10
Hello Experts,

I have a CSV file that needs to be altered programatically. I would like to delete several rows and change the names of a couple of cells.

Does anyone know how to do this using C#?

Thanks!
0
Comment
Question by:Saxitalis
4 Comments
 
LVL 10

Assisted Solution

by:Tom
Tom earned 664 total points
ID: 33552911
good tutorial here:
http://support.microsoft.com/kb/306683

Basically you first create a macro in excel that do the job and then call it from C#
0
 
LVL 5

Accepted Solution

by:
roxviper earned 668 total points
ID: 33552943
Hi,

I have found a simple csv parser here. Take a look, maybe it will help you: http://knab.ws/blog/index.php?/archives/3-CSV-file-parser-and-writer-in-C-Part-1.html
0
 

Assisted Solution

by:vanslyker
vanslyker earned 668 total points
ID: 33558585
There's also 3rd party tools which can do this quite easily.
http://www.componentone.com/SuperProducts/ExcelNET/ 
0
 

Author Closing Comment

by:Saxitalis
ID: 33590991
I went about this a different way but thease are all valid solutions for my question...

thanks
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question