Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OLEDRAGDROP from outlook

Status
Not open for further replies.

Nigel Gomm

Programmer
Jan 10, 2001
423
CA
did anyone else's drag&drop from outlook suddenly stop working?

The OLEDRAGDROP event is firing but odataobject.getformat() never returns .t. (as last resort it loops from -64000 to +64000)

Worked until very recently so am guessing a recent outlook update broke it. Dragging from explorer still works.

Had a few scattered reports from users this week but now it has happened to me with 64bit outlook build 13901.20336

dragging between outlook windows (i.e. dragging attachments from email to email) still works.

n
 

updated outlook (build 13901.20462 click to run) and problem persists. Is no one else handling OLEdragdrop from outlook or am i the only one with it broken?

for now if my oledragdrop code fails to get a valid .getformat() it assumes dragged from outlook and fetches the first PDF, JPG or PNG attachment on the currently selected outlook item that isn't an embedded image.

Not ideal but probably what is expected about 90% of the time.

n
 
What if you start the "fun with OLE Drag&Drop" sample of the solutions sample and drag from Outlook to one of the boxes, ie into the "Drop files here from Windows Explorer". I haven't installed outlook now, so I can't tell you what happens. At least this sample has some code to deal with the DataObject formats, especially also using GetFormat("OLE Variant Array") besides others.

That said I'd look for specific formats Outlook uses, I guess you don't find them in the enumeration of standard items but as an Outlook specific term/name.



Chriss
 
Chris,

hmm.... i've only ever tried with the numeric values. Will look up some outlook specific terms now.


thanks

n

p.s.
i just tried the the solution sample and it isn't recognizing drags from outlook either

 
Well, so it's not 'OLE Variant Array', but I guess outlook data objects have their own format names. I wonder whether one can see what formats are available in an OLE data object.

Chriss
 
I just tried my Outlook drag-and-drop sample form and it seems to be working. However, in the relevant paper ( I note that to really get anything more than the basics from Outlook, you have to combine drag-and-drop with automation.

Hope something there helps you.

Tamar
 
Tamar,

what version of outlook do you have? Pretty sure this stopped working for me after a recent outlook update.

n

(and yes... having got the filename being dragged(with odataobject.getdata(1)) it then (well, until last week) automates outlook to save the attachment of that name and add it wherever in my application.)
 
ahah !

oDataObject.GETFORMAT("FileGroupDescriptor") returns true.

Then extract the filename from .GETDATA("FileGroupDescriptor") and i'm off to the races.

Tamar, i see in your session paper you are already using "FileGroupDescriptor" rather than the numeric values i was using.

n

and, Chriss, thanks for reminding me of the VFP solution samples; the "ole drag and drop data formats" shows the formats available (drop on the purple button).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top