Solved

Manipulate an Excel spredsheet (csv) file with C#

Posted on 2010-08-29
4
477 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ASP.NET data base connection 35 93
Data Analysis 7 58
ASP.NET, Globalization, language indexes, translation, conversion. 2 63
How do I "share" on social sites? 2 37
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

737 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