![]() To create this custom Replacement form region, I used Visual Studio 2008 to create an Outlook 2007 Add-in project (see Figure 1). For example, in the sample, I'll walk through a custom message class called CustomersSalesData that derives from the Mail Message type thus, what results is a custom message class called. Unlike the Adjoining and Separate form regions that are created for existing Outlook message classes-for example, Mail Message (IPM.Note), Contact (IPM.Contact), and Appointment (IPM.Appointment)-when selecting the Replacement (or Replace All) form region, you create a custom message class that derives from one of the existing Outlook message classes. The Replacement form region can be used to create a custom form for a custom message class. Replace All These cause the form region to replace all of the content on the first form page of the Outlook form, and they remove all other form pages from the form.Įach one of these form regions allows you to extend Outlook in interesting ways, but here I'll focus on the Replacement form region. Replacement These cause the form region to replace all of the content on the first form page of the Outlook form (all existing form pages are left in place). Separate These add a new page to the form. Note that there are four types of Outlook 2007 form regions at your disposal:Īdjoining These appear at the bottom of the target Outlook form on the first Outlook form page and/or at the bottom of the Outlook reading pane. You can even add a custom Ribbon to an Outlook 2007 inspector that will host the custom form region and add code to the Ribbon so that it interacts with the controls on the region. For example, you can create a VSTO form region that connects to a Web service to acquire customer relationship management (CRM) data and display it in a grid. This allows you to design and code the new Outlook form regions in one development environment and brings many advantages of Windows Forms to the hosting environment of Outlook. VSTO 3.0 provides a Windows Forms-based design environment in Visual Studio 2008. I'll also show you how to add Windows® Presentation Foundation (WPF) support to form regions to help improve their look, feel, and interactivity. I'll show you what you can do with a new type of form development technology called form regions, which can be special areas on existing Outlook forms. You can use Visual Studio 2008, specifically VSTO 3.0, to develop Microsoft Outlook® customizations, which is what I'll cover in this article. However, in Visual Studio 2008, all the VSTO project templates are included. Visual Studio Team System 2005 included Visual Studio 2005 Tools for Office (VSTO)-you could also download VSTO Second Edition to begin solution development for both Office 2003 applications and the 2007 Microsoft Office system. One area where Visual Studio 2008 really stands out, though, is in its support for Microsoft® Office solutions development. ![]() ![]() It has some awesome features, such as support for LINQ, improved Web development, and tighter integration with Windows Vista® and SharePoint®, to name just a few. ![]() This article uses the following technologies:Ĭode download available at: CustomOutlookRegion2008_Launch.exe (4168 KB) Browse the Code OnlineĮxtend Outlook 2007 with Custom Form Regionsīuilding and Running the Custom Replacement Form Regionīy now, I'm sure you've heard quite a few appealing things about Visual Studio® 2008.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |