OLEDragDrop for Outlook attachments 
Author Message
 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.



Thu, 19 May 2005 02:39:08 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. OLEDragDrop from Microsoft Outlook Contacts...

2. OLEDragDrop from Microsoft Outlook Contacts...

3. Accept drops of messages from Outlook and Dragging attachments from MS Outlook

4. Accept drops of messages from Outlook and Dragging attachments from MS Outlook

5. Access To Outlook Attachments Error

6. Send SMTP mail (with attachments), without using Outlook

7. Sending reports as attachments through Outlook

8. Reading Outlook attachments

9. Working with Outlook Attachments in linked Access Tables

10. How to call the Outlook Save Attachments dialog box

11. Outlook MailItem.Attachments.Add method, Position Parameter

12. Access-outlook attachments

 

 
Powered by phpBB® Forum Software