I am trying to create an Add-in to outlook that gets the attachement and send the to another program. I'm using VB and I attach the relevant part of the code.
My problem is that the string is empty. So my question is: How can I get the full path of the attachment?
For info, I test with Outlook 2007 and develop on Visual Studio 2008.
Dim currentMailItem = CType(Me.Application.ActiveInspector().CurrentItem, Outlook.MailItem)
For i = 1 To currentMailItem.Attachments.Count
Dim fileString As String = currentMailItem.Attachments.Item(i).PathName