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
| Create task when changing category to red... |
| Hello everybody
Since I'm new in programming outlook I'd need some help :)
I allready know vba for excel so I hope i'll learn fast.
Here's my problem:
I'd like to auto-create a task when I'm changing the category of an e-mail to "red". Best... |
| Outlook addin updates |
| Hi,
I have just created a new version of an addin I've been developing and would like to 'push' it to all users. I have thus put the published addin in the folder where all users have installed their addin (the one that appears in the Trust Centre for... |
| Form that reads through mailbox looking for... |
| I am continuing to work on a feedback form that was originally designed by an external contractor and have subsequently had to make it actually work.
The form was sent in to a specific mailbox, and they had to open a spreadsheet to run assign a reference... |
| Runtime error Object Required on Read Message... |
| Hi hope someone can help. I have a customised message form which works beautifully except for one particular scenario. Basically the form generates an email in html format from details entered on an "email creator" modified form page tab. This is put... |
| Outlook 2003 Homepage view and security |
| Hi,
i finally managed to create a C# project that creates a windows user control that is embedded into outlook as a web view. I can access outlook items just fine. But when i access secured items i get the message to allow access for X minutes.
The... |
| "[UNREGISTERED]" Prepended to Subject when... |
| I am using Redemption to save some messages in .msg format. For some reason all of the resulting files have the text "[UNREGISTERED]" stuck on to the beginning of the subject. I cannot figure out what is causing this. Has anyone run into this before?... |
| Remove Secure Mail Settings |
| I'm running a VB6 app that uses both the Outlook object model as well as CDO 1.21 library. When I send to external company e-Mail addresses....only from one machine....it gets sent in a secure mail format. All other machines send as normal mail. I've... |
| is there anything wrong with this code? |
| Private Sub CSO_ItemSend(ByVal Item as Object, Cancel as Boolean)
If Item.Attachments.Count = 0 Then
Cancel = True
MsgBox "You forgot the attachment."
End If
End Sub
Whenever I run the form, it will throw "Script Error. Expected ')'.... |