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.Inter op.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 1 4738
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.Inter op.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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 Type, object
AddToFolderFields, object DisplayFormat)
So, what I do is:
oMyItem.UserProperties.Add("myProperty",Outlook.OlUserPropertyType.olYesNo,
true, XXX???XXX);
|
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' error on the highlighted line. What
am I doing wrong?
Thanks
Regards
|
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. What am I doing wrong?
Thanks
Regards
|
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 Type, object
AddToFolderFields, object DisplayFormat)
So, what I do is:
oMyItem.UserProperties.Add("myProperty",Outlook.OlUserPropertyType.olYesNo,
true, XXX???XXX);
|
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.
=============================
Outlook.Application OutApp = new Outlook.Application();
Outlook.OlItemType olItem = new Outlook.OlItemType();
Outlook.MailItem OutMail = (Outlook.MailItem)OutApp.CreateItem(olItem);
OutMail.To = ToAddress;
//OutMail.SenderName = FromAddress;
| |
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
'Outlook.ItemEvents_Event'.
Name 'olByReference' is not declared.
Name 'olMailItem' is not declared.
Name 'olTo' is not declared.
How could i edit this code to get it to work?
|
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.
---------------------
OutLook._Application outlookObj = new OutLook.Application();
|
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 recipients and leave it there for the
user to finish filling out.
What classes am I looking for?
|
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 following error:
Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80040154.
When reaching the line:
Outlook.Application outlookApp = new...
|
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 As New Outlook.Application
Dim objNS As Outlook.NameSpace
Dim objRecip As Outlook.Recipient
Dim objFolder As Outlook.MAPIFolder
objNS = objolApp.GetNamespace("MAPI")
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |