View Single Post
  #5  
Old September 27th 07, 03:50 PM posted to microsoft.public.outlook.program_addins
Tom at GSD
external usenet poster
 
Posts: 84
Default Custom View for Message class

Thanks Ken. I think I may fork my code for Outlook 2007.



"Ken Slovak - [MVP - Outlook]" wrote:

You can do a lot with Outlook 2003 but if you look at the new view stuff for
Outlook 2007 there's a lot more available, like the autoformatting. I
usually either fork my code and use the Outlook 2007 stuff if available or
fall back to just using the XML if only Outlook 2003 or earlier is there.

Spend a little time with a MAPI viewer like OutlookSpy looking at the hidden
messages in folders where custom views have been applied. Like I said I
start out with a view designed using the UI and then go the hidden messages
to start playing. You'd be looking at items with a MessageClass of
IPM.Microsoft.FormDesign.NamedView where PR_SUBJECT is the name of the named
view. The view XML is in a PT_BINARY property.

Then the other repositories for custom views are under IMsgStore\Root
Container\IPM_VIEWS and IPM_COMMON_VIEWS in the hidden items.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Tom at GSD" wrote in message
...
Hi Ken,

Thanks for your help. Is assume that there is similar stuff available for
Outlook 2003? I was reading some documentation on IMAPIViewContext and
thought that interface might be the way to go. It has taken about two
months
to construct the provider and it has integrated with Outlook 2003 very
nicely, but now I have create some propriety views to support the new
message
class. We have to support both Outllok 2003 and 2007 and I was hoping to
use
the same architecture.

Thanks again for your input.



Ads