Home All Groups Group Topic Archive Search About

Outlook Email drag and drop

Author
16 May 2006 9:27 PM
YYZ
Problem:  I need to allow my users to drag an email out of Outlook and
drop it on a winform -- from there, I need to get the text of that
email (not just the sender and subject) -- from there I'll save it
myself in a database.  This is to allow them to track all the
correspondance that happens between themselves and a customer.

I've found code examples of how to do this with an ATTACHMENT out of
Outlook, but not the email message itself (even though several
solutions claim to do that, they don't -- they just ignore messages and
work great on attachments).

Can anyone point me to where I might find such a code snippet?

I've tried the soluction posted here:
http://codeproject.com/csharp/TestEmailDragDrop.asp

That works great for attachments, but doesn't work at all for the full
email.

Note -- I don't care about email WITH attachments...unless they drag
the attachment over manually, we aren't going to capture that, only the
body text of the email -- in either text, rich text, or html format.

Matt

Author
17 May 2006 3:38 AM
Robert
Show quote Hide quote
"YYZ" <matt.da***@gmail.com> wrote in message
news:1147814870.977414.221130@g10g2000cwb.googlegroups.com...
> Problem:  I need to allow my users to drag an email out of Outlook and
> drop it on a winform -- from there, I need to get the text of that
> email (not just the sender and subject) -- from there I'll save it
> myself in a database.  This is to allow them to track all the
> correspondance that happens between themselves and a customer.
>
> I've found code examples of how to do this with an ATTACHMENT out of
> Outlook, but not the email message itself (even though several
> solutions claim to do that, they don't -- they just ignore messages and
> work great on attachments).
>
> Can anyone point me to where I might find such a code snippet?
>
> I've tried the soluction posted here:
> http://codeproject.com/csharp/TestEmailDragDrop.asp
>
> That works great for attachments, but doesn't work at all for the full
> email.
>
> Note -- I don't care about email WITH attachments...unless they drag
> the attachment over manually, we aren't going to capture that, only the
> body text of the email -- in either text, rich text, or html format.


Here is a crude program that does some of what you want, however it has only
been used with Outlook Express.  The clipboard formats were pure trial and
error.

This prog is used now and then to burn persistant spammers bandwidth..

[attached file: DragDrop.rar]