Interop.Outlook error

B

Brian

Following the article 'Developing .NET Smart Clients for Microsoft Office XP" I have create a C# add-in.
However, when I add the line:

using Outlook = Microsoft.Office.Interop.Outlook;

I get the following errors:

....\Connect.cs(8): The type or namespace name 'Interop' does not exist in the class or namespace 'Microsoft.Office' (are you missing an assembly reference?)
....\Connect.cs(8): The type or namespace name 'Interop' does not exist in the class or namespace 'Microsoft.Office' (are you missing an assembly reference?)

I have followed all the instructions correctly but still get the error.
I have OfficeXP SP2

Any suggestions will be most helpful.
 
A

Alan Seunarayan

The best thing to do is to check the namespaces for your assemblies via
VS.NET's 'Object Browser'. You can activate it by pressing Ctrl-Alt-J

Alan

Brian said:
Following the article 'Developing .NET Smart Clients for Microsoft Office XP" I have create a C# add-in.
However, when I add the line:

using Outlook = Microsoft.Office.Interop.Outlook;

I get the following errors:

..\Connect.cs(8): The type or namespace name 'Interop' does not exist in
the class or namespace 'Microsoft.Office' (are you missing an assembly
reference?)
..\Connect.cs(8): The type or namespace name 'Interop' does not exist in
the class or namespace 'Microsoft.Office' (are you missing an assembly
reference?)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top