Reference How can I add a reference to the Microsoft.Office.interop.Excel from a C# program?

Posted on 2004-11-11
Last Modified: 2010-04-15
I am trying to instiate Excel and Visio 2003 in a C# problem.

Yet I got problems with references to both programs.

Excel: C# do not recognise Microsoft.Office.Interop.Excel
Visio: C# do not recognise Visio.Application

Thank you
Question by:GingerRogers
    LVL 18

    Accepted Solution

    Have you added References to COM object of this application?

    In Solution Explorer
     Right Click on Reference --> Select Add Reference --> Click on COM Tab --> Microsoft Excel 10 Object Library

    Sameway you can add reference to Visio.. there'll be pleny of option for Visio, choose what you want

    LVL 9

    Assisted Solution

    by:Rodney Helsens
    You may find this helpful also..

    Working with the Office XP Primary Interop Assemblies


    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
    This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    746 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

    20 Experts available now in Live!

    Get 1:1 Help Now