This page has been archived and is no longer  being actively maintained.
Outlook Developer Home
Outlook Programmer's Library
 
Outlook Technologies
Outlook Forms
Languages
Samples
Other Technologies

 

Microsoft Outlook 2002 Problems for Developers

Outlook 2002 expands the Outlook object model to add view and search objects and fixes a few nagging issues. This page deals with the new problems that Outlook 2002 introduces.

Known Problems | Service Pack 3 Issues | More Outlook 2002 Articles

Known Problems

CRITICAL: Applications will run up against the "object model guard":

Your applications will encounter the object model guard whenever you access certain objects and methods, especially those related to addresses and sending items. At the very least, you will want to update your applications to handle the error that Outlook raises when a user clicks No in one of the confirmation prompts.

In an Exchange Server or HP OpenMail environment administrators can set up administrative overrides for the built-in security settings. Otherwise, the only workarounds are to use a different programming model -- Redemption or, for C++/Delphi only, Extended MAPI -- or code or a tool that uses SendKeys to automatically click the prompts.

Office XP Service Pack 3 adds Body and HTMLBody to the list of properties subject to the Outlook Email Security Update for VBA and external code. On published forms, HTMLBody is subject to security prompts, but Body is not.

The administrative security components have been updated to allow for "trusted" COM add-ins, but CDO is unaffected.

If the administrator in an Exchange Server or HP OpenMail environment uses the updated security components to trust a COM add-in, certain CDO calls still remain subject to the "object model guard" prompts.

Some large complex forms may truncate data or be unpublishable on Windows 98 and Windows ME:

On Windows 98 and Windows ME, the Body property can hold only 64kb. You may also be unable to publish a form. See:

There may be discrepancies between the data added to the Body property and what you read out programmatically:

This is related to the first KB article listed above:

In addition, on Windows 98 and Windows ME, Outlook 2002 adds an Asc(13) character to the end of the Body property. This does not happen in Outlook 2000

On Windows 2000 and Windows XP, Outlook does not truncate the Body property when you read it programmatically, but it adds two characters -- Asc(13) and Asc(10) -- to the end. This does not happen in Outlook 2000

The Registry key for the Master Category list has moved ... again: 

If you have a project that enforces a single Master Category list for all users, you need to be aware that the Registry key changes in Outlook 2002. The list is located at the HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Outlook\Categories\MasterList, but the key has changed from a string value to a binary, to accommodate Unicode values.

Under Outlook 97 and Outlook 98, the category list was stored as a semi-colon delimited string in the default value for the HKEY_CURRENT_USER\Software\Microsoft\Office\8.0\Outlook\Categories key. Under Outlook 2000, the list was a string value -- HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Outlook\Categories\MasterList.

The XPrint control and add-in for printing custom forms are not supported:

According to the article OL2002 XPrint Control and Add-in Unsupported with Outlook 2002, the XPrint control and add-in for printing custom Outlook forms have not been tested with Outlook 2002. They might work, but then again, they might not. They are officially unsupported. See Printing Custom Outlook Forms and Reports for alternative methods. 

The Help system is awful ... still:

The HTML help for Office XP has been redesigned, and in the process, someone decided to remove all the information about the Office VBA constants. So if you want to know what constants to use in your VBScript code on Outlook forms, you won't find them in Help. Instead, use the object browser in VBA, or see Microsoft Outlook 2002 Object Model Constants

There are also errors in help that have been there since Outlook 97.  See OL2002 Documentation Errors in Outlook Visual Basic Help.

Contact form preview:

In Outlook 2002, a contact form with the first page customized will not display in the preview pane. This is addressed in SP3, even for forms with code behind them. See:

You cannot create new Office Document forms:

The File | New | Office Document command in Outlook 2002 creates an Excel, Word or PowerPoint document, not an Office Document form as in previous versions. You can, however, work with existing Office Document forms in design mode in Outlook 2002. If you want to continue to design new Office Document forms, one solution is to create blank Office Document forms in Outlook 2000, publish them then transfer them to Outlook 2002 either as forms published to a folder in a PST file or as .fdm files.

We have put together a Personal Folders PST file containing six blank sample Office Document forms. After you download the file, unzip it, and open the Office Document forms.pst file in Outlook using the File | Open | Outlook Data File command.

The Office Document method of codeless printing of Outlook forms still works with Excel worksheet forms, but using a Word Office Document form as a response form appears to hang Word.

Also see:

Outlook 2002 allows only 30 entries in the Links collection:

Without saying how many links were allowed in earlier versions, Microsoft has introduced a limit in Outlook 2002 "for performance reasons." When working with the Links collection, you may want to check the Count before adding a new Link. See OL2002: You Cannot Link Multiple Contacts to an Item.

Users cannot toggle a folder home page on and off:

This could be a problem or a feature, depending on your point of view. See OL2002: Cannot Toggle or Disable Folder Home Page.

Shortcuts and embedded objects in tasks don't work:

In Outlook 2002, embedded objects, shortcuts, etc. in task items cannot be launched after the item is saved and reopened. No known workaround.

Back to Top

Service Pack 3 Issues

Office XP Service Pack 3 seems to have had more than its share of issues. While a number of issues were fixed, some with new registry keys, there were also design changes that affect programmers and problems that have required hotfixes.
Fixes:
Design changes:

Office XP Service Pack 3 adds Body and HTMLBody to the list of properties subject to the Outlook Email Security Update for VBA and external code. On published forms, HTMLBody is subject to security prompts, but Body is not. Also see:

Items in other users' mailboxes that use published forms don't run code by default. A registry entry can enable code to run. See Forms in Other Mailboxes.

SP3 allows automatic signatures to run on custom forms, something that didn't work in earlier version. Since this is not always desirable, a hotfix has been issued to add support for a new NoAutosigOnCustomForms registry entry to suppress automatic signatures on custom forms. See  Multiple signatures appear in a custom multi-page form in Outlook 2002

Hotfixes:
May 7, 2004 hotfix Resolves a number of programming issues:
  • A situation where the body of a message created in an Exchange client extension may be blank.
  • In a custom form, truncation of the Subject property or the initial value for any property to 255 characters.
  • Lack of support for the Scripting\Threshold registry key used to reduce memory problems with Items collection iterations.
  • An object insertion issue in RTF messages.
  • Problems retrieving user properties that are large strings.
  • Incorrect data returned from the GetFreeBusy method.
  • Inaccurate value for Attachments.Count in an email message that has an RTF message attached.
  • Security warnings on a custom contact form with code behind it.
  • A conflict between a custom MAPI form server and  instant messaging integration.
  • A problem with custom email message forms losing values in date fields.
May 14, 2004 hotfix Fixes a problem with Word automation from Outlook.
May 17, 2004 hotfix Fixes a memory error problem with scripts running against calendar folders.
June 1, 2004 hotfix Fixes two problems with Exchange client extensions in which temporary attachments are not removed in the OnWriteComplete event. Also adds the NoAutosigOnCustomForms registry entry described above.
June 2, 2004 hotfix Resolves a problem with CDO 1.21 that can trigger an infinite loop if you save an appointment on the daylight savings time transition date.
June 26, 2004 hotfix Fixes a problem with custom appointment forms that caused data to be lost from forwarded meeting requests.
February 3, 2005 hotfix Fixes a problem with the ForceFormReload registry value used to make Outlook load a form from the original published location instead of the cache.

Other known issues:

Back to Top

More Outlook 2002 Articles

More problems:

   
© 2002-6 TurtleFlock, LLC
All right reserved.
About OutlookCode.com

Send comments to webmaster@outlookcode.com

Designed and Implemented by TerraLink USA 

FrontPage Integration
by RobsonDesignWorks

 
 
get Sue's code | forums | share your own code | registration