About This Code
Detach files using COM
02 Sep 2003
All of the program code and information presented in the OpenNTF.org Code Bin are provided "as-is", and should be used at your own risk. OpenNTF.org make no express or implied warranty about anything in the Code Bin, and OpenNTF.org will not be responsible or liable for any damage caused by the use or misuse of anything from this site. OpenNTF.org makes no guarantees about anything. Please thoroughly test all of the knowledge and code you find here before you attempt to use them in your production environment.
Code / Description
A cool way to detach files from Notes Documents to be processed by some other Application using COM.
Usage / Example
You get e-mails from various systems in a CSV file format. You have an access database that runs reports based upon the data in the CSV file. Have these e-mails moved to a special folder to be processed. This code will open your mail file on the server, open the folder, detach all the file attachments, and then move the e-mails from the to be processed folder to the processed folder. Once the files are detached then you can call the import routine to import the data into an access table to generate your report.