Some time ago I was looking to drop an email attachment into my application. There was no solution found at that moment.
Now I have a solution where I can drop everything into my application. It is a very simple way by using dchtmlviewer. This way Windows will do all the hard work for you.
When you open the viewer and you navigate to a folder, Windows explorer is opened in the viewer with the folder already open. Now you can drop everything into this viewer. A file, an attachment of a mail, a complete mail, ... Since you have navigated to a folder of your choice, you have the possibility to 'scan' that folder, and get all the files from it.
Code: Select all
cFolder := "c:\yourfolder"
@ x,x DCHTMLVIEWER oDrop SIZE x,x, NAVIGATE cFolder
This is how I implemented it in my application. A user can see the list, can drop new files in it, and can also open files to process.