Drag drop email to .net windows application

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

-$
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top