S
Sachya
I am trying to save emails which are dragged and dropped to my windows
application.
In my windows application I am using something like this
Dim objApplication As Microsoft.Office.Interop.Outlook.Application
objApplication =
CType(System.Runtime.InteropServices.Marshal.GetActiveObject("Outlook.Application"), Microsoft.Office.Interop.Outlook.Application)
Dim objMailItem As Microsoft.Office.Interop.Outlook.MailItem
For Each objMailItem In objApplication.ActiveExplorer.Selection
objMailItem.SaveAs("C:\" & objMailItem.Subject.ToString() &
".msg", Microsoft.Office.Interop.Outlook.OlSaveAsType.olMSG)
Next
But, it is giving security prompt when I access these emails to save in my
application.
Is there any workaround for this, I don't want to disable any settings at
outlook level.
Is there any other way to enable drag drop emails on windows application.
I am using
VS2005
Office 2007
-$
application.
In my windows application I am using something like this
Dim objApplication As Microsoft.Office.Interop.Outlook.Application
objApplication =
CType(System.Runtime.InteropServices.Marshal.GetActiveObject("Outlook.Application"), Microsoft.Office.Interop.Outlook.Application)
Dim objMailItem As Microsoft.Office.Interop.Outlook.MailItem
For Each objMailItem In objApplication.ActiveExplorer.Selection
objMailItem.SaveAs("C:\" & objMailItem.Subject.ToString() &
".msg", Microsoft.Office.Interop.Outlook.OlSaveAsType.olMSG)
Next
But, it is giving security prompt when I access these emails to save in my
application.
Is there any workaround for this, I don't want to disable any settings at
outlook level.
Is there any other way to enable drag drop emails on windows application.
I am using
VS2005
Office 2007
-$