I’m working as a Junior Application Developer in MNC. I’m trying to develop an application where I have to open OST file in C# programming. I’m using C# 7.0 version in Visual Studio 2017. In the latest version, I can easily use local functions while developing an application. While writing code I’m facing errors in code. The following code I’ve used:
mail = OutlookApp.CreateItem(Outlook.OlItemType.olMailItem)
mail.Subject = “A programatically generated e-mail”;
mailRecipients = mail.Recipients;
mailRecipient = mailRecipients.Add(“Eugene Astafiev”);
“There is no such record in your address book.”);
catch (Exception ex)
“An exception is occured in the code of add-in.”);
After searching a lot about this error on this forum. I have found one topic related to OST.
I can’t get a solution on above thread. Then I searched on other forums and found few references. Please refer these references and provide your suggestion.