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";
First question: What errors are you actually seeing when trying that code?
Second up: Are you trying to reimplement this in PowerShell? If not, you may find more luck posting on a more C# heavy forum, or on Stack Overflow (or one of their subsites). You may notice that you've posted this in the "General PowerShell Q&A", which doesn't really seem to cover this question.
The topic ‘Unable to open OST file in C# [.net]’ is closed to new replies.