
OLEDragDrop for Outlook attachments
When I drag an attachment from Outlook to my desktop it copies the file
there. I need to do the same thing within my VB app, and capture an
attachment when it is dropped onto a command button.
I am using the OLEDragDrop event and have found that three formats are
available: Text (1), UnicodeText(13) and another custom format (-16208).
I have not managed to get anything from the first two formats using the
standard Data.GetData call into a byte array, but with the custom format I
get a load of binary data plus the attachment file name. I am guessing that
the rest of the binary data is the attachment content. What I need to do is
to recreate the file on disk for my app. Alternatively, if anyone knows how
to get the location of the temp file name representing the attachment using
the Text/UnicodeText formats I would be grateful.