A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Displaying custom fields



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 28th 08, 05:43 PM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 3
Default Displaying custom fields

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.
  #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.

  #3  
Old August 29th 08, 03:26 PM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 3
Default Displaying custom fields

Thanks Sue. It is OL2007 i'm targetting, and i'm well on my way now.
I'm creating the folder in question at run time, so all I have to do
now is set the view after creating the folder and i'm there.

Much appreciated!
  #4  
Old September 1st 08, 05:24 PM posted to microsoft.public.outlook.program_addins
Doobs
external usenet poster
 
Posts: 3
Default Displaying custom fields

I now have this working fine, using a combination of Redemption and
the Outlook Object Model. Myissue now is that when I open a message, I
would like the additional fields to be displayed in the form.

Is there a way to amend the form in code, rather than creating and
deploying a custom form and associating it with the custom message
class? There seems to be a vast amount of info out there on custom
forms, but i'm having trouble finding examples of exactly what I want
to do.

On Aug 29, 3:26*pm, wrote:
Thanks Sue. It is OL2007 i'm targetting, and i'm well on my way now.
I'm creating the folder in question at run time, so all I have to do
now is set the view after creating the folder and i'm there.

Much appreciated!


  #5  
Old September 1st 08, 09:18 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Displaying custom fields

Outlook 2007's new forms region feature would be a good fit with what you're
add-in is doing so far. See http://www.outlookcode.com/news.aspx?id=22 to get
started.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Doobs" wrote:

I now have this working fine, using a combination of Redemption and
the Outlook Object Model. Myissue now is that when I open a message, I
would like the additional fields to be displayed in the form.

Is there a way to amend the form in code, rather than creating and
deploying a custom form and associating it with the custom message
class? There seems to be a vast amount of info out there on custom
forms, but i'm having trouble finding examples of exactly what I want
to do.

On Aug 29, 3:26 pm, wrote:
Thanks Sue. It is OL2007 i'm targetting, and i'm well on my way now.
I'm creating the folder in question at run time, so all I have to do
now is set the view after creating the folder and i'm there.


  #6  
Old September 2nd 08, 06:19 PM posted to microsoft.public.outlook.program_addins
Doobs
external usenet poster
 
Posts: 3
Default Displaying custom fields

Thanks Sue. I'm using a form region now, as described in the
walkthrough, and i have the "Hello World" type example working fine.

What I can't manage to work out is how to modify the controls on the
form region from within my main addin code. I'm working in c# by the
way.

All I want to do is change the caption of a label field or the text of
a textbox, but I don't seem to be able to reference these controls
from my addin code. I must be missing something in the examples.

On Sep 1, 9:18*pm, Sue Mosher [MVP-Outlook]
wrote:
Outlook 2007's new forms region feature would be a good fit with what you're
add-in is doing so far. Seehttp://www.outlookcode.com/news.aspx?id=22to get
started.
--
Sue Mosher, Outlook MVP
* *Author of Microsoft Outlook Programming: Jumpstart
* * * for Administrators, Power Users, and Developers
* * *http://www.outlookcode.com/jumpstart.aspx

"Doobs" wrote:
I now have this working fine, using a combination of Redemption and
the Outlook Object Model. Myissue now is that when I open a message, I
would like the additional fields to be displayed in the form.


Is there a way to amend the form in code, rather than creating and
deploying a custom form and associating it with the custom message
class? There seems to be a vast amount of info out there on custom
forms, but i'm having trouble finding examples of exactly what I want
to do.


On Aug 29, 3:26 pm, wrote:
Thanks Sue. It is OL2007 i'm targetting, and i'm well on my way now.
I'm creating the folder in question at run time, so all I have to do
now is set the view after creating the folder and i'm there.


  #7  
Old August 29th 08, 03:26 PM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 3
Default Displaying custom fields

Thanks Sue. It is OL2007 i'm targetting, and i'm well on my way now.
I'm creating the folder in question at run time, so all I have to do
now is set the view after creating the folder and i'm there.

Much appreciated!
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to move fields in custom form to "user-defined fields in folde austex Outlook - Using Contacts 0 January 9th 08 11:51 PM
Custom form not displaying efader Outlook - Using Forms 1 April 23rd 07 11:56 PM
importing custom fields into a custom form susan lasalle Outlook - Using Contacts 1 January 16th 07 09:01 PM
Custom Form not displaying B-Rock Outlook - Using Forms 3 June 16th 06 02:07 AM
copy custom task with custom fields VinceGSMW Outlook - General Queries 3 May 31st 06 03:11 AM


All times are GMT +1. The time now is 12:31 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.