Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Outlook Form Region RSS Reader Sample

Visual Studio 2008

NoteNote:

This sample runs only in Microsoft Office Outlook 2007.

This sample demonstrates how you can use Microsoft Office Outlook form regions to display the full content of articles from an RSS feed. The usual behavior of Outlook is to display only the headline.

An adjoining form region is appended to the bottom of an RSS item when you view the item in the Reading Pane.

A separate form region appears as a separate page in the RSS item when you view the item in an Outlook Inspector.

Security noteSecurity Note:

This sample code is intended to illustrate a concept, and it shows only the code that is relevant to that concept. It may not meet the security requirements for a specific environment, and it should not be used exactly as shown. We recommend that you add security and error-handling code to make your projects more secure and robust. Microsoft provides this sample code "AS IS" with no warranties.

To run this sample

  1. Press F5.

    Outlook opens.

  2. Open an RSS item. For more information, see Read RSS Feeds.

    NoteNote:

    You must have a subscription to an RSS feed. For more information, see Add an RSS Feed.

  3. Select a message in the message list.

    The message appears in the Reading Pane. The full article appears underneath the message in an adjoining form region.

  4. Double-click a message in the message list.

    The message opens in an Inspector window.

  5. In the Show group of the Ribbon, click View Article.

    The full article appears as a new page in the form.

  6. At the top of the page, click Search for Similar Topics.

    The Live Search Web site opens and displays search results that relate to the title of the article.

  7. At the top of the page, click Hide Search Results.

    The search results are no longer visible in the page.

This sample requires the following:

  • Visual Studio Tools for Office.

  • Microsoft Office Outlook 2007.

  • A subscription to an RSS feed. For information about how to subscribe to an RSS feed in Outlook, see Add an RSS Feed.

  • The Reading Pane must be turned on in Outlook. For more information, see Turn the Reading Pane on or off.

This sample demonstrates the following concepts:

  • Creating separate and adjoining form regions.

  • Using managed controls in a form region.

  • Accessing an instance of the Microsoft.Office.Interop.Outlook.PostItem class. This class represents the RSS item that displays the form region.

  • Using the Microsoft.Office.Interop.Outlook.PostItem instance in the Microsoft.Office.Tools.Outlook.FormRegionControl.FormRegionShowing event handler to process the form region before it appears in Outlook.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft