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

Hi,
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
 
GingerRogersAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

tusharashahCommented:
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


-tushar

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rodney HelsensCommented:
You may find this helpful also..

Working with the Office XP Primary Interop Assemblies
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnoxpta/html/odc_oxppias.asp

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.