OL2002: The WebViewOn Property Does Not Display Home Page (305093)



The information in this article applies to:

  • Microsoft Outlook 2002

This article was previously published under Q305093

SYMPTOMS

You use the WebViewOn property in the Outlook object model, but it does not display a home page that is associated with a folder.

WORKAROUND

To work around this problem, have the user switch to another folder, and then switch back to the folder with the home page.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

This behavior is different than in Microsoft Outlook 2000, which automatically displays the folder home page when you set the WebViewOn property to True.

Steps to Reproduce the Problem

  1. Click your Contacts folder.
  2. Run the following Outlook Visual Basic for Applications code:
    Sub DisplayFolderHomePage()
       Set oFolder = Session.GetDefaultFolder(olFolderContacts)
       oFolder.WebViewURL = "http://www.microsoft.com"
       oFolder.WebViewOn = True
       ' Set ActiveExplorer.CurrentFolder = Session.GetDefaultFolder(olFolderCalendar)
       ' Set ActiveExplorer.CurrentFolder = oFolder
       Set oFolder = Nothing
    End Sub
    					
    Note that the folder does not show the home page.

  3. Remove the home page from the folder. To do this, right-click the Contacts folder, and then click Properties. On the Home Page tab, click Restore Defaults, and then click OK.
  4. Uncomment the two commented lines of the preceding code.
  5. Run the code again.
The result is that the folder displayed is still the Calendar folder.

REFERENCES

For additional information about available resources and answersto commonly asked questions about Microsoft Outlook solutions, click the article number below to view the article in the Microsoft Knowledge Base:

287530 OL2002: Questions About Custom Forms and Outlook Solutions


Modification Type:MajorLast Reviewed:4/7/2006
Keywords:kbQFE KBHotfixServer kbbug kbnofix KB305093