Search Wiki:
Resource Page Description
Sample code for creating Preview Handlers on Windows XP systems using a COM server built in the .NET Framework. Preview Handlers are a built in part of Vista, however the out-of-process server that is included in Vista is not a part of Windows XP and thus a preview host is necessary.

This library is a sample of implementing the necessary COM server implementation as well as preview handler interfaces to create a handler that will work in Outlook 2007 and Windows XP.

Credit goes to Stephen Toub, Ryan Gregg, and Lim Bio Long for providing inspiration, sample code and documentation to this sample.

This sample is based off of articles on CodeProject demonstrating implementing COM servers in .NET as well as code from Ryan Gregg for implementing the required interfaces for IPreviewHandler to make this work.

See The Code Trip for a brief video by roadie Tim Heuer describing the core piece of this and a link to an implementation using this library.
Last edited Mar 29 2008 at 1:25 AM  by timheuer, version 6
Comments
jjbongo wrote  Jul 18 2008 at 6:24 PM  
This is great for Outlook 2007 in Windows XP, but has anyone been able to make it function within a custom .Net Windows forms application?

I have been playing with the ExplorerForm and SimpleForm samples in the C4FDevKit PreviewHandlers (designed for Vista - http://www.codeplex.com/C4FDevKit), and the Explorer sample works with the standard Office 2007 preview handlers under XP. However the application freezes without throwing an exception when it tries to use a handler from this Preview Handler COM Server.

Thanks.

Updating...
Page view tracker