Results 1 to 3 of 3

Thread: DragDrop attachments from outlook (2010) on a listview (or any other component)

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2009
    Posts
    244

    DragDrop attachments from outlook (2010) on a listview (or any other component)

    I'm trying to understand if it's possible to support OleDragDrop attachments directly from outlook to our application.

    The format's that are given aren't documented in any VB6 document.
    There are 3 supported formats when I check the Data object during the OleDragOver event:
    • -16110: Seems like ANSI version of the filename (at least that what I can understand from dumping the GetData(-16110) to a bytearray)
    • -16109: Seems like Unicode version of the filename (at least that what I can understand from dumping the GetData(-16109) to a bytearray)
    • -15691: ????? Don't know, as GetData(-15691) gives me the error "Specified format doesn't match format of data" or "Method 'GetData' of object 'IVBDataObject' failed" (depends if I first use GetFormat(-15691)).


    Any idea if it's possible to get the actual data somehow?

  2. #2
    PowerPoster
    Join Date
    Aug 2010
    Location
    Canada
    Posts
    2,412

    Re: DragDrop attachments from outlook (2010) on a listview (or any other component)

    Check out Ednamo's Get dropped attachments from Outlook messages sample here: http://www.mvps.org/emorcillo/en/code/vb6/index.shtml

  3. #3
    Frenzied Member
    Join Date
    Mar 2008
    Posts
    1,210

    Re: DragDrop attachments from outlook (2010) on a listview (or any other component)

    I originally got some working code which I labelled 'ref Cees Verburg's code at http://www.developersdex.com/vb/mess...=640&r=6462813 however that link seems to have died.
    A Google turned up this from the same author which at a glance looks pretty similar http://www.tech-archive.net/Archive/.../msg00977.html
    Edit: Sorry the second link looks like an unsolved version.
    Last edited by Magic Ink; Jan 20th, 2014 at 07:12 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width