![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |