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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

drag & drop attachment from outlook 1

SoftArt

Programmer
Feb 22, 2007
28
DE
Hi Foxis,

I am familiar with drag & drop of files from explorer, but i need help with drag & drop of outlook attachments (pdf)
Does anyone have an example code for this?

Thomas
 
You are wanting to drag an attachment in Outlook to a VFP app, get a reference to it, and process it in VFP in some fashion?
 
Yes, the file (pdf) should then be copied/created in VFP app to a specific directory.
 
Tamar,

in found a little bug in your code:

oObjColl = ThisForm.oOutlook.oExplorer.Selection must be
oObjColl = ThisForm..oExplorer.Selection

after that modification I got the attachement object and it´s SaveAsFile method.
Many thanks you for help und greetings from Germany.

Thomas
 
Glad I was able to help.

I guess you found the code. For others, the downloads for each session on my site are linked at http://tomorrowssolutionsllc.com/conferencepapers.php.

Tamar
Tamar,

I rejoiced a little too soon.
With your code I get information on all the attachments contained in the mail, but not the currently selected.
I have experimented a bit with AttachmentSelection but I can't get any further. Do you have another idea for me?

Thomas
 
Last edited:
Not something I've played with, but AttachmentSelection looks like it should get you what you need. Maybe show us some code.

Tamar
 

Part and Inventory Search

Sponsor

Back
Top