This article describes the known issues in Microsoft Office Outlook 2010 that can occur when you use Outlook 97-2003 custom forms. The scope of this article is limited to custom forms that you create by using the method with which you would typically publish a form in these earlier versions of Microsoft Outlook. This article does not discuss custom forms that you create by using the form region feature in Outlook 2007 and in Outlook 2010.
The following sections in this article contain information about issues that can occur with custom forms in Outlook 2010.
By default, earlier versions of Outlook ran VBScript code in custom forms and scripts in folder home pages that were in public folders. This can be disabled by a policy setting or through the Outlook user interface. For more information about these settings, click the following article number to view the article in the Microsoft Knowledge Base: 838871
Description of the developer-related security changes in Outlook 2002 Service Pack 3 (SP3) In Outlook 2010, the default behavior was changed to prevent scripts from running in public folders. To re-enable this behavior in Outlook, follow these steps:
- Click File, and then click Options. (The screen shot for this step is listed below).
- In the list of categories, click Trust Center, and then click Trust Center Settings. (The screen shot for this step is listed below).
- In the left pane of the Trust Center, click E-mail Security. (The screen shot for this step is listed below).
- Select the Allow script in Public Folders check box, and then click OK.
For more information about how to change this setting by using policy settings, go to the following Microsoft TechNet website: TechNet: Group Policy overview for Office 2010
In Outlook 2010, the top-level public folder name changed from Public Folders
to Public Folders - email@example.com
to support multiple public folder stores being available in a single MAPI profile. Custom form code that refers to the top-level folder as Public Folders
has to be updated so that the correct folder name is used with Outlook 2010. The following VBScript code sample shows how to dynamically return the correct folder name based on which version of Outlook is being used:
Sub Item_Open() MsgBox GetTopLevelPublicFolderNameEnd SubFunction GetTopLevelPublicFolderName() Set oSession = Application.GetNameSpace("MAPI") If Left(Application.Version,2) < 14 Then ' Set public folder for Outlook 2007 and lower GetTopLevelPublicFolderName = oSession.Folders("Public Folders") Else ' Set public folder for Outlook 2010 and higher strUserName = oSession.CurrentUser.AddressEntry.GetExchangeUser.PrimarySMTPAddress strFolderName = "Public Folders - " & strUserName GetTopLevelPublicFolderName = oSession.Folders(strFolderName) End IfEnd Function
Outlook custom forms let form developer create custom actions that work like Reply, Forward, and so on. With a custom action, a form can be sent immediately instead of opening a new form, or users can be prompted to confirm that they want to send a form. If all the following conditions are true, Outlook does not send the form immediately, and the user is prompted to send the form:
- The form is a custom email message form (message class of IPM.Note or a subclass of IPM.Note).
- The modified action is one of the built-in actions: Reply, Reply to All, Forward, or Reply to Folder.
- The user selects the action in the Outlook user interface (the Action.Execute method in the Outlook object model is not affected).
This was a design change in Outlook 2010.
If you use a custom message form and the form's actions are set to open a custom form on reply, reply all, or forward, then the message body will be blank after the reply or forward is sent. This only happens if the form is published in Outlook online mode. As a workaround, publish the form while Outlook is in cached mode. Because online mode is de-emphasized, there are no plans to fix this problem.
Related Microsoft Knowledge Base articles
For Outlook 2007, click the following article number to view the article in the Microsoft Knowledge Base:
Known issues in Outlook 2007 when you use Outlook 97-2003 custom forms
For similar articles that cover issues with other aspects of the Outlook 2010 development platform, click the following article numbers to view the articles in the Microsoft Knowledge Base
Known issues in Outlook 2010 when you use the object model
Known issues in Outlook 2010 when you try to develop form regions
Known issues in Outlook 2010 when you develop custom solutions
Known issues in Outlook 2010 when you use the Outlook View Control