Outlook Developer News
Updated solution for a custom form list box bound to a keywords field
On an Outlook custom form, if you bind a multi-select list box to a keywords field and populate the list box's rows in code, the list box will have no selected rows when the user reopens a previously saved item, making it look like the user's data has been lost. The Form Controls Demo form has been updated to demonstrate a workaround for this issue.
The problem apparently is that the field value is applied to the control before the list box rows are populated. The solution is to use code in the form's Item_Open event handler to select the appropriate rows after the list rows have been populated, but -- to add to the complications -- it is not possible to access the value of a custom keywords field directly. A workaround for that issue is to bind a text box to the keywords property and read the value from the text box control; see More Fun with Keywords. To simplify the process of finding the row whose text matches a particular value in the keywords field, the code uses a Scripting.Dictionary object to hold the same values as the data used to populate the rows and handle the lookup.
To see the solution, download Form Controls Demo.zip (9kb, 9 Jul 09), unzip it, open the .oft file, and publish that form. Then use the published form to create a new task.
This form also demonstrates two other ways of handling a multi-select list box and two ways to handle option buttons. For more information on those controls and others, see Controls on Outlook Forms.
New hotfix for Outlook 2007 - June 30, 2009
The June 30, 2009, hotfix package for Outlook 2007 fixes several developer issues:
A new ReliableFolderMoveEvent registry entry solves a problem with the BeforeFolderMove event ceasing to fire after a while.
When applications create new categories programmatically, those categories should now still be available after a restart of Outlook.
Custom form icons that weren't displaying on Windows Vista with a high DPI display (for example, 120 DPI) should now display correctly.
In Cached Exchange Mode with the reading pane active, messages based on custom forms that have VBScript code behind them should no longer increase CPU usage or crash Outlook.
The hotfix also resolves a problem with accessing fields in CDO 1.21 applications.
Outlook 2007 Programming chapters available on MSDN
Three chapters from Sue Mosher's Microsoft Outlook 2007 Programming book are now available on MSDN:
Sample code for these chapters is available from the get Sue's code link at the top of the page.
Outlook 2007 performance improvements in SP2
Office 2007 Service Pack 2 targets Outlook with a long list of performance improvements related to .ost and .pst files, startup, shutdown, and folder switching. For details, see:
Outlook 2010: No support for Exchange client extensions
Back before Microsoft extended Outlook with support for add-ins, beginning with Outlook 2000, developers added functionality to Outlook by building Exchange client extensions -- or ECEs -- using the Extended MAPI programming interface. Microsoft in fact built its own ECEs to manage such Outlook features as deleted item recovery.
Beginning with Outlook 2010, ECEs will not load in Outlook, according to Randy Byrne of the Outlook team. Randy provides more background on ECEs in his article for the Outlook team blog, where he explains the options that ECE developers face if they want to redesign their applications to work in Outlook 2010 and asks for your feedback, especially your concerns about parity between ECE and add-in capabilities.
From the Forums
| How to save attachments on current opened... |
| Hi there
I know how to save attachments from emails found in a certain folder, however I would like to save attachments on an email I have opened (current opened email). Could anyone help how to do this with VBA ? The idea is to press alt+X for example,... |
| On a single client Macros are disabled, no... |
| Hey Ladies & Gents
My name is Gyorgy Boda, and earlier I was posting to this forum regarding a VBA project for outlook we developed in our company. This tool is now sorta finished, widely used on several email accounts, and we have something of a year... |
| Customizing Outlook Message Forms |
| Sue,
In your article entitled as the subject line, you state:
As a practical matter, this means that you cannot use an Outlook message form to gather information from people outside your organization.
Is this still the case with Outlook 2010?
I've... |
| Email Send |
| Hai
in outlook 2007 i design the form to send mail.then i saved as .oft file and i published the file. then i call in windows schedular to send mail everyday in particular time. Mail Is Sending my problem is When we read mail the icon never changing... |
| Reply or Forward with a templates |
| I'm new to this forum, i need your help to find out the correct VBA code to solve this issue,,, (i am not filmier with VBA)
i managed to make a drop down list button and add all templates i made before to it, and now i can send a new email by choosing... |
| Linking Access2007 Sharepoint list to Outlook... |
| We are currently using an Access2007 in a WSS 2007 list to track technicians appointments. We want to link this field to the Technician's Outlook 2007 calendars. |
| outlook notifications |
| can some body please guide me on how do i work with notifications programatically. I am new to Outlook Programing. and i have a custom form where i get some 3rd party messages. so how can i programatically use the outlook notifications for these messages.... |
| Outlook 2003 Web View form layout |
| Hi,
i am currently developing an outlook 2003 web form with C#. It includes a windows forms usercontrol and on that some windows forms controls and a wpf host.
But the layout of the default buttons is completely broken. Buttons show almost white,... |
| help with vba import emails from subfolder... |
| hi
i want to import emails from outlook subfolder to access db
i have this code but returns error subfolder not defined
Private Sub Readtodeletebox_Click()
On Error Resume Next
Dim TempRst As DAO.Recordset
Dim rst As DAO.Recordset
Dim OlApp... |
| VBA code for modifying subject for replies... |
| I am having trouble writing code to modify the existing subject of an email when forwarding or replying (both Reply and Reply All) to that email. I have the following code which will only allow me to perform the forwarding and replying. I am lost as... |