Quantcast
Channel: NetOffice - MS Office in .NET
Viewing all articles
Browse latest Browse all 1741

New Post: Referencing Outllook DLL's

$
0
0
Hi,
I am facing problems with my code which is using the "OutlookAPI.dll","OfficeAPI.dll" and "NetOffice.dll" for working with my application using Outlook. THE REASON I AM USING NETOFFICE IS FOR BACKWARD COMPATIBILITY WITH DIFFERENT VERSIONS OF OUTLOOK.

I am currently refereing the 3 DLL's - "OutlookAPI.dll","OfficeAPI.dll" and "NetOffice.dll" and using the below code

using OfficeApi.Utils;
...
...
...
Outlook.Application _Outlook = null;
Outlook.MailItem mi = null;
_Outlook = new Outlook.Application();
Outlook.Explorer oExplorer = _Outlook.ActiveExplorer();
Outlook.Selection oSelection = oExplorer.Selection;
...
...
mi = (Outlook.MailItem)item;

I am getting an error - "The type or namespace name 'OfficeApi' could not be found (are you missing a using directive or an assembly reference?)"
i have downloaded the entire source code and checked the examples. even they have the "Missing Reference" error. Kindly help

Thanks and Regards
Gurudatt

Viewing all articles
Browse latest Browse all 1741

Trending Articles