Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE Drag - Drop from Outlook into VFP
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00242050
Message ID:
00243148
Views:
32
>This situation is similar to draging and dropping network resources such as mapped drives, printers, etc.. In that case, some sort of binary array gets created. I too have yet to find any information on how to grab these contents.
>
>When I drag messages from Outlook, I also get a CF_TEXT type which brings over a string of text that matches the columns I elect to show in my inbox. In my case, the string consists of the defaults that Outlook starts with.
>
>While I can't give you advice on how to work with the other data types such as FileDescriptor and so forth, maybe a work around will work. Why not use the the data you *can* get and automate outlook to fetch the actual email. Once you have an object ref to the message, you can do anything you want. Granted, this does not solve your Outlook Express issue, but it is a start.
>
>
>
>
>>I can drag email messages from Outlook 98 and Outlook Express to the desktop or an explorer window and save the message(s) as files. (subject text.msg)
>>
>>I am trying to code for having Outlook messages dropped on a form in my VFP application and have VFP save the file(s), but I am having difficulty because the file contents are passed as "stream" data, and I cannot get VFP to read the contents of the files.
>>
>>There are 2 data formats that are dropped from the data object that the windows shell uses to receive the files from Outlook, "FileGroupDescriptor" which holds the number of files passed, as well as an array of "FileDescriptor" structures that give, among other things, the names of the files that are being passed. The second data format passed is called "FileContents" and it is of type "stream" and I cannot get VFP to recognize it at all. Has anyone found a workable method of incorporating OLE Drag & Drop from Outlook & Outlook Express into a VFP application?
>>
>>-Lou Harris.

I was afraid that I'd have to use the CF_TEXT data that is dropped. The information on the MSDN that I found about this was at the web page: http://msdn.microsoft.com/library/sdkdoc/shellcc/shell/DragDrop.htm
It was a little bit lower-level than I'm able to do in VFP, but I had hoped that someone had an ActiveX control that would handle it.

Thanks again,
-Lou.
"All my life I said I wanted to be someone ...
I can see now that I should have been more specific." -Jane Wagner
Previous
Reply
Map
View

Click here to load this message in the networking platform