P
Peter
Hello,
Thanks for reviewing my question. In reference to
knowledge base article: 302901 - HOW TO: Build an Office
COM Add-in by Using Visual C# .NET.
I followed the article and got everything work correctly
but of course I want to do more. If Outlook is loaded, I
assume the object applicationObject must be Outlook's
Application Object - Is this correct? Can I just cast it
to Outlook._Application object? I want to be able to be
able to create new contacts for instance.
Since this project started from a Shared Add-in, by
default VS.NET includes the Office.dll reference. When I
reference other Office 2003 programs like Access, Excel
and Outlook, doing so includes another reference
Microsoft.Office.Core. If I compile my program now, I
get multiple warnings:
'Microsoft.Office.Core.CommandBar' is defined in multiple
places; using definition
from 'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
\office.dll'
What's wrong? I reference Access, Excel and Outlook in
order to gain access to their Application object.
Many Thanks to the Experts.
Peter
Thanks for reviewing my question. In reference to
knowledge base article: 302901 - HOW TO: Build an Office
COM Add-in by Using Visual C# .NET.
I followed the article and got everything work correctly
but of course I want to do more. If Outlook is loaded, I
assume the object applicationObject must be Outlook's
Application Object - Is this correct? Can I just cast it
to Outlook._Application object? I want to be able to be
able to create new contacts for instance.
Since this project started from a Shared Add-in, by
default VS.NET includes the Office.dll reference. When I
reference other Office 2003 programs like Access, Excel
and Outlook, doing so includes another reference
Microsoft.Office.Core. If I compile my program now, I
get multiple warnings:
'Microsoft.Office.Core.CommandBar' is defined in multiple
places; using definition
from 'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
\office.dll'
What's wrong? I reference Access, Excel and Outlook in
order to gain access to their Application object.
Many Thanks to the Experts.
Peter