View Single Post
  #2  
Old August 29th 08, 03:09 AM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Displaying custom fields

You don't need a .cfg file to display a property you've added through
MailItem.UserProperties.Add. The third parameter for that property needs to
be True, in order to add it to the properties defined at the folder level.
Once you've done that, you can display the property by modifying the value of
View.XML in Outlook 2003 or, in Outlook 2007, using the TableView.ViewFields
collection. For best results, your application should create and apply its
own new view, rather than modifying the currently displayed view.

If you're targeting Outlook 2007, you can display the custom fields in a
form region.

TIP: Always specify the Outlook version(s) you're targeting when you post,
as there are significant differences between them.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx



" wrote:

I have created an add-in in vs2005 c# which is adding custom
properties to mails, and I wish to display these custom properties in
the folder view.

I have found various postings detailing cfg files to allow display of
extended mapi properties such as the sender email address, but i'm not
sure how to modify these cfg files to allow me to display the custom
fields I have created.

Can anyone explain to me how to do this, or more simply what the
various sections in the cfg file refer to so that I can create my own?
I can't find any detail about creating these files, just prepared
examples for specific extended mapi properties.

Alternatively, i'd be happy with displaying the custom fields on a
custom form displayed instead of the ipm.note standard form.

Any help would be appreciated.

Ads