Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8951365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:38:48+00:00 2026-06-15T13:38:48+00:00

I am doing a lot of MS Excel interop i C# (Visual Studio 2012)

  • 0

I am doing a lot of MS Excel interop i C# (Visual Studio 2012) using Microsoft.Office.Interop.Excel. It requires a lot of tiresome manual code to include Excel formulas, doing formatting of text and numbers, and making graphs.

I would like it very much if any of you have some input on how I do the task better. I have been looking at Visual Studio Tools for Office, but I am uncertain on its functions. I get it is required to make Excel add-ins, but does it help doing Excel automation?

I have desperately been trying to find information on working with Excel in Visual Studio 2012 using C#. I did found some good but short tutorials. However I really would like a book an the subject to learn the field more in depth regarding functionality and best practices. Searching Amazon with my limited knowlegde only gives me book on VSTO using older versions of Visual Studio.

I would not like to use VBA. My applications use Excel mainly for visualizing compiled from different sources. I also to data processing where Excel is not required. Futhermore, I can write C# but not VB.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T13:38:49+00:00Added an answer on June 15, 2026 at 1:38 pm

    I’ve used this before, found it very good and very easy for reading & writing Excel sheets. Not sure about the more advanced stuff (It’s there, I just never tried it) but give it a look. Works on the OOXML format (.xlsx) and there’s no COM interop or VBA or anything, pure .Net

    http://epplus.codeplex.com/

    Example code to make a pie-chart:

    //ExcelPackage is a class within the EPPlus DLL
    var p = new ExcelPackage();
    p.Workbook.Worksheets.Add("sheetName")
    var ws = p.Workbook.Worksheets.First();
    
    //Add the piechart
    var pieChart = ws.Drawings.AddChart("crtExtensionsSize", eChartType.PieExploded3D) as ExcelPieChart;
    
    //Set top left corner to row 1 column 2
    pieChart.SetPosition(1, 0, 2, 0);
    pieChart.SetSize(400, 400);
    pieChart.Series.Add(ExcelRange.GetAddress(4, 2, row-1, 2), ExcelRange.GetAddress(4, 1, row-1, 1));    
    pieChart.Title.Text = "Extension Size";
    
    //Set datalabels and remove the legend
    pieChart.DataLabel.ShowCategory = true;
    pieChart.DataLabel.ShowPercent = true;
    pieChart.DataLabel.ShowLeaderLines = true;
    pieChart.Legend.Remove();
    

    Just filling in rows, columns and formatting is simpler than the above 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm doing a lot of work in Javascript with Visual Studio .Net 2008. It
What I want to do I'm trying to use the Microsoft.Office.Interop.Excel namespace to open
After doing lot of research in Google, I found this program: #include <stdio.h> int
I'm doing a lot of text manipulation between multiple files that requires a lot
I am using Excel 2007. I have C# code written in a separate binary.
I am doing a lot of manual work and I tried finding relevant macros,
I discovered Apache POI for doing a lot with MS Office programmatically in Java,
I'm currently doing a lot of work against Microsoft's Exchange Web Services (EWS) API
I am doing lot of desktop application but using .Net WinForm. But now for
So I am doing a lot of high performance network programming using Boost::Asio (or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.