473,323 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

Outlook Add-in Project problem

Hello,

Am getting acquainted with VSTO and Visual Studio. I have been really
successful adding references to the PIAs for Word, Outlook, Excel,
etc. to Console applications and VB applications.

However, I also wanted to investigate add-ins (specifically for
Outlook). I downloaded VBTO 2007 SE and installed it, and now when I
start Visual Studio I see project templates for, e.g. Outlook Add-In.

That's great, except when I use the template I get all kinds of
errors, e.g.:
"Warning 1 This project references the primary interop assembly for
Microsoft Office Outlook 2007, but this primary interop assembly is
not installed. "

Now, that's awfully confusing since I am able to create a console app,
add a reference to Outlook 12.0 Object Library, and type something
like "Imports Microsoft.Interop.foo", whereas when I do that in my
template I get the error that this is not defined.

I tried to manually add the Outlook object library to my Add-In
Project, but that doesn't work either. When I view the resources in
the project properties, it lists the Outlook 12.0 Object Library (just
like in my console application), but says "The system cannot find the
reference specified"

Any clues how I can get this working?

Thanks,
Marc

Apr 11 '07 #1
1 4723
Hi Marc,

You can download the Primary Interop Assemblies (PIAs) from Microsoft at
this url:

http://www.microsoft.com/downloads/d...DisplayLang=en

This explains what they are, if you're not familiar:

http://msdn2.microsoft.com/en-us/lib...ffice.11).aspx

Install them and hopefully your problem will go away.

Pete
"Marc" wrote:
Hello,

Am getting acquainted with VSTO and Visual Studio. I have been really
successful adding references to the PIAs for Word, Outlook, Excel,
etc. to Console applications and VB applications.

However, I also wanted to investigate add-ins (specifically for
Outlook). I downloaded VBTO 2007 SE and installed it, and now when I
start Visual Studio I see project templates for, e.g. Outlook Add-In.

That's great, except when I use the template I get all kinds of
errors, e.g.:
"Warning 1 This project references the primary interop assembly for
Microsoft Office Outlook 2007, but this primary interop assembly is
not installed. "

Now, that's awfully confusing since I am able to create a console app,
add a reference to Outlook 12.0 Object Library, and type something
like "Imports Microsoft.Interop.foo", whereas when I do that in my
template I get the error that this is not defined.

I tried to manually add the Outlook object library to my Add-In
Project, but that doesn't work either. When I view the resources in
the project properties, it lists the Outlook 12.0 Object Library (just
like in my console application), but says "The system cannot find the
reference specified"

Any clues how I can get this working?

Thanks,
Marc

Apr 24 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Marcel Stör | last post by:
Hi all, I'm trying to add a user property to an Outlook contact item. VisualStudio tells me that the method signature was like this: UserProperties.Add(string Name,Outlook.OlUserPropertyType...
0
by: John | last post by:
Hi I am trying to open a new outlook message and add a user defined property to it, from within MS Access using the below code. I am getting an 'Object variable or With block variable not set'...
3
by: John | last post by:
Hi I am using the below code to generate an outlook message from a template from within access. I am getting the 'Object variable or With block variable not set' error on the line indicated....
0
by: Marcel Stör | last post by:
Hi all, I'm trying to add a user property to an Outlook contact item. VisualStudio tells me that the method signature was like this: UserProperties.Add(string Name,Outlook.OlUserPropertyType...
0
by: Danish | last post by:
Hi all, I am trying to open outlook express along with an attachment. I have added a reference to the Microsoft outlook Library I am using the following lines of code....
4
by: Nicole | last post by:
I found this code below to use to send emails using VB with Outlook. However, it gives these errors. 'Send' is ambiguous across the inherited interfaces 'Outlook._MailItem' and...
3
by: mwolowski | last post by:
Hello, I'd like to add tasks, appointments, etc using c# to outlook For example i added reference using OutLook = Microsoft.Office.Interop.Outlook; and the code: 1. ---------------------...
4
by: Andy | last post by:
Hi, I have a C# application and I'd like it to use Outlook 2003 to send messages. I don't want to send them programmaticlly though; I just want to open the New Messge window, set the...
2
by: RodneyAnonymous | last post by:
I've got some code for composing an e-mail from the contents of an RTF box. The first time I execute it, everything works fine. If I close my app and then re-run it, however, I always receive the...
1
by: chrisli | last post by:
Hey, i have written this code to read all Outlook Appointments from another user and fill them into my DGV. Public Sub ReadOtherUserAppointment(ByVal UserName As String) Dim objolApp...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.