Solved

Manipulate an Excel spredsheet (csv) file with C#

Posted on 2010-08-29
4
461 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 9

Assisted Solution

by:Tom
Tom earned 166 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 167 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 167 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

776 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