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
| Search email body for patterns |
| Our office works with lots of personal information and it's a major no-no to send any email out that has social security numbers in the body. Is there a way to search the body of the email for patterns of a social security number (ie: "123-45-6789",... |
| UserProperties in Sharepoint Calendar |
| I have Sharepoint 3 calendar linked to Outlook 2007. When I add items in Outlook, I sometimes add user properties (programatically via a COM Add In). Initially, all seems fine, and I can access the user properties from within Outlook.
But fairly... |
| Accessing Form Region Properties from ThisAddin.cs... |
| I have created a form Region which is a seperate Form linked to an Appointment, I designed it in Outlook Developer and created user Properties for each text field.
What I want to be able to do is access these properties from within the ThisAddin.cs... |
| Custom Form Not Adding Appt to Public Folder... |
| We have a leave request form that gets submitted to mgr. Once approved, the employee is notified via email and an appointment gets placed on the public calendar. This has been working for years but is not working since we moved to OL 2010 (from 2003).... |
| Access record to Public Exchange Calendar... |
| I have an Access database and I'd like to export information from a single record and make it an appointment in our Exchange calendar which is used by everyone. I saw another post about this and tried to mod the code for my purposes, but nothing seems... |
| Copying additional contact fields when chosing... |
| Greetings!
I'm using OL 2010. Though I'm very proficient with Outlook, I've run into a problem with custom forms. When choosing to create a new "Contact from same company" from the "Save and New" drop down button, a new contact screen pops up ready... |
| Where do I begin? |
| Well, that's a loaded question, isn't? With the plethora of resources here it makes my head spin, and I have at least some development experience.
I've been handed the task of creating an Outlook add-in that warns the user they are replying to all... |
| Help Sinking to NewInspectors Event in Outlook... |
| Hi, I'm trying to sink to the new inspectors event in OUtlook 2010 with no success so far after researching. What is wrong with my code below?
Imports Microsoft.Office.Interop.Outlook
Public Class ThisAddIn
Event NewInspector As InspectorsEvents_NewInspectorEventHandler
... |
| Bugged ? or is it my code? |
| Making a short sub to save an email message as a html text file. The below code works for outlook 2007 SP2. The bug is when it writes the message.htm file it adds an additional header at the top. If I saveas manually through file -> Saveas it works... |
| How to flag the emails in outlook 2007 based... |
| Hi team,
As I am new to the coding, needs help in finding out the emails in outlook based upon the data in excel.
I had data in Excel are the following fields..
From Subject Received
Using the above fields have to search the emails in outlook... |