![]() |
![]() |
|
Home About me Links Contact me Disclaimer Impressum Products - mv_Menu - Color-TV - db-Mutex - Form-Factor - OL-Plus package - URL-Download - Drop-Target - VdB_Mail |
The OLPLUS-Package The newer versions of MS Outlook (2000,XP,2003) have the possibility to customize their toolbar with so called add-ins. If you click the toolbar button, the first action of the add-in is to retrieve the unique EntryIDs of the selected mail-items (one or more). Then it tries to connect to the dbase paintbox. If your application is running, the Ids are
transferred immediately, if not, the Ids are stored temporary and the next time your
program starts, the paintbox will "see" the pending mails and read the Ids. Once the paintbox has the EntryIds (the unique identifier for each mail), it creates an oleautoclient-object that connects to Outlook and finds the mail-items corresponding to the IDs. The content of the mail item in question is accessed via oleautomation. This has the great advantage, that you can read all properties independent of the actual version of Outlook and that you have the full control not only over the properties, but also all methods (you could f.i. remove the mail from the inbox, once it has been processed in dbase). For ease of use, the most important properties are concentrated in an email class : Microsoft has adopted a very restrictive security politic with the versions XP and 2003. Each time an application wants to retrieve the value of a certain property, a MessageBox pops up and asks the user to confirm access. You can customize the bitmap of the add-in-button to fit best with your application (showing your icon f.i). It is enough to copy a bitmap called
plus.bmp to the directory of the package. The same way you can adapt the name of the
command bar and speed tip (plus.txt). extract all the files to a same directory and run the testform. If you want, you could arrange the windows in such way, that test.wfm and OL are visible at the same time (make sure, to start test.wfm first). The mail-items will appear in the listbox as soon as you click the add-in-button. If you choose to remove an item from within dbase, you can see that it disappears
immediately in Outlook. There is a free evaluation version, that comes with co-files and a Msgbox popping up after the processing of mails. | ||||
![]() |
Web site and all contents © Copyright Marc Van den Berghen 2008, All rights reserved. |