Solved

Manipulate an Excel spredsheet (csv) file with C#

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

744 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now