This project has moved. For the latest updates, please go here.

Referencing Outllook DLL's

Sep 17, 2013 at 1:59 AM
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
Coordinator
Sep 17, 2013 at 12:11 PM