Outlook Form Region RSS Reader Sample
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.
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
Open an RSS item. For more information, see Read RSS Feeds.
You must have a subscription to an RSS feed. For more information, see Add an RSS Feed.
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.
Double-click a message in the message list.
The message opens in an Inspector window.
In the Show group of the Ribbon, click View Article.
The full article appears as a new page in the form.
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.
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.