DragDrop Outlook emails

  • Thread starter Thread starter GMoney
  • Start date Start date
G

GMoney

Has anybody figured out how to drag and drop directly from Outlook to their
application using C# and get the information associated with the message..?
I am fine with files and text, but for some reason I cannot seem to find
the data in the IDataObject that relates to the email content.

Thanks

G
 
GMoney (are you part of G-Unit),

The IDataObject interface has the GetFormats method. Have you tried
looking through the different formats and seeing if one has text content you
can work with?

Hope this helps.
 
Thanks Nicholas... I have looked through these and I don't seem to get
anything meaningful (I do get a psuedo message header, but that is about
it).(I know I have already sent this to you, but I thought I had better
carry the thread on with answers)....
Umm the types I am getting are these...
? e.Data.GetFormats()
{Length=9}
[0]: "RenPrivateSourceFolder"
[1]: "RenPrivateMessages"
[2]: "FileGroupDescriptor"
[3]: "FileGroupDescriptorW"
[4]: "FileContents"
[5]: "Object Descriptor"
[6]: "System.String"
[7]: "UnicodeText"
[8]: "Text"
The RenPrivateMessages outputs a MemoryStream that I have suck straight into
a textstream which has a decent length, but all the characters are just
zeros...
The text and UnicodeText and System.String all seem to output this 'psuedo
header':
? e.Data.GetData("Text")
"From\tSubject\tReceived\tSize\t\r\nJacques Rossouw\tPath\t09:23\t18 KB\t"
Any ideas....
 
Back
Top