![]() |
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 created an add-in, and I want to add a custom field in the Inbox Explorer
through the code, and show in the current view. I want to do this through the code, so when user open Outlook for the first time, if this field is not in the view it should add the field. I want to distribute this add in to hundred users, and I am looking for better way to customize view other then me going to all of them and doing it manually. Any ideas? Thanks, Goran |
#2
|
|||
|
|||
![]()
Customize the view you want to use manually and copy the view XML and use
that to apply a custom view in your addin code. I usually use the BeforeFolderSwitch event handler to decide what kind of folder is being switched to and whether or not to apply the custom view. You can't add new folder fields, you can add a user property to every item in a folder and set the property to be a folder fields property, which makes it available for use in a view. Again, your addin code can add the property when the addin runs. -- 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 "goran" wrote in message ... I created an add-in, and I want to add a custom field in the Inbox Explorer through the code, and show in the current view. I want to do this through the code, so when user open Outlook for the first time, if this field is not in the view it should add the field. I want to distribute this add in to hundred users, and I am looking for better way to customize view other then me going to all of them and doing it manually. Any ideas? Thanks, Goran |
#3
|
|||
|
|||
![]()
Thanks Ken
Each user will have its own view and it could be different, so I can't copy the same view xml for everyone. I would have to dynamically get the view xml in BeforeFolderSwitch event. Check if the field is already there and if not edit/update the xml to add the field, save and apply. Right? If yes, what would be the easiest way to edit/update ActiveExplorer.CurrentView.XML in the code to add new field? Thanks again for your help, Goran "Ken Slovak - [MVP - Outlook]" wrote: Customize the view you want to use manually and copy the view XML and use that to apply a custom view in your addin code. I usually use the BeforeFolderSwitch event handler to decide what kind of folder is being switched to and whether or not to apply the custom view. You can't add new folder fields, you can add a user property to every item in a folder and set the property to be a folder fields property, which makes it available for use in a view. Again, your addin code can add the property when the addin runs. -- 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 "goran" wrote in message ... I created an add-in, and I want to add a custom field in the Inbox Explorer through the code, and show in the current view. I want to do this through the code, so when user open Outlook for the first time, if this field is not in the view it should add the field. I want to distribute this add in to hundred users, and I am looking for better way to customize view other then me going to all of them and doing it manually. Any ideas? Thanks, Goran |
#4
|
|||
|
|||
![]()
I use an XML processor when I have to do that, usually just from MSXML. I
usually use a reference to version 2 since it's on all modern systems, later versions may not be unless I deploy it with my code, depending on updates and OS version. -- 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 "goran" wrote in message ... Thanks Ken Each user will have its own view and it could be different, so I can't copy the same view xml for everyone. I would have to dynamically get the view xml in BeforeFolderSwitch event. Check if the field is already there and if not edit/update the xml to add the field, save and apply. Right? If yes, what would be the easiest way to edit/update ActiveExplorer.CurrentView.XML in the code to add new field? Thanks again for your help, Goran "Ken Slovak - [MVP - Outlook]" wrote: Customize the view you want to use manually and copy the view XML and use that to apply a custom view in your addin code. I usually use the BeforeFolderSwitch event handler to decide what kind of folder is being switched to and whether or not to apply the custom view. You can't add new folder fields, you can add a user property to every item in a folder and set the property to be a folder fields property, which makes it available for use in a view. Again, your addin code can add the property when the addin runs. -- 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 "goran" wrote in message ... I created an add-in, and I want to add a custom field in the Inbox Explorer through the code, and show in the current view. I want to do this through the code, so when user open Outlook for the first time, if this field is not in the view it should add the field. I want to distribute this add in to hundred users, and I am looking for better way to customize view other then me going to all of them and doing it manually. Any ideas? Thanks, Goran |
#5
|
|||
|
|||
![]()
I will try. Thanks Ken.
"Ken Slovak - [MVP - Outlook]" wrote: I use an XML processor when I have to do that, usually just from MSXML. I usually use a reference to version 2 since it's on all modern systems, later versions may not be unless I deploy it with my code, depending on updates and OS version. -- 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 "goran" wrote in message ... Thanks Ken Each user will have its own view and it could be different, so I can't copy the same view xml for everyone. I would have to dynamically get the view xml in BeforeFolderSwitch event. Check if the field is already there and if not edit/update the xml to add the field, save and apply. Right? If yes, what would be the easiest way to edit/update ActiveExplorer.CurrentView.XML in the code to add new field? Thanks again for your help, Goran "Ken Slovak - [MVP - Outlook]" wrote: Customize the view you want to use manually and copy the view XML and use that to apply a custom view in your addin code. I usually use the BeforeFolderSwitch event handler to decide what kind of folder is being switched to and whether or not to apply the custom view. You can't add new folder fields, you can add a user property to every item in a folder and set the property to be a folder fields property, which makes it available for use in a view. Again, your addin code can add the property when the addin runs. -- 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 "goran" wrote in message ... I created an add-in, and I want to add a custom field in the Inbox Explorer through the code, and show in the current view. I want to do this through the code, so when user open Outlook for the first time, if this field is not in the view it should add the field. I want to distribute this add in to hundred users, and I am looking for better way to customize view other then me going to all of them and doing it manually. Any ideas? Thanks, Goran |
#6
|
|||
|
|||
![]()
Sorry to bother you again Ken, but I finish customizing the view and
everything is fine now. How can I programmatically load the addin so when user starts the outlook it loads it automatically, rather then me going to add-in manager and finding the dll file and adding it manually. Thanks again for your help "Ken Slovak - [MVP - Outlook]" wrote: I use an XML processor when I have to do that, usually just from MSXML. I usually use a reference to version 2 since it's on all modern systems, later versions may not be unless I deploy it with my code, depending on updates and OS version. -- 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 "goran" wrote in message ... Thanks Ken Each user will have its own view and it could be different, so I can't copy the same view xml for everyone. I would have to dynamically get the view xml in BeforeFolderSwitch event. Check if the field is already there and if not edit/update the xml to add the field, save and apply. Right? If yes, what would be the easiest way to edit/update ActiveExplorer.CurrentView.XML in the code to add new field? Thanks again for your help, Goran "Ken Slovak - [MVP - Outlook]" wrote: Customize the view you want to use manually and copy the view XML and use that to apply a custom view in your addin code. I usually use the BeforeFolderSwitch event handler to decide what kind of folder is being switched to and whether or not to apply the custom view. You can't add new folder fields, you can add a user property to every item in a folder and set the property to be a folder fields property, which makes it available for use in a view. Again, your addin code can add the property when the addin runs. -- 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 "goran" wrote in message ... I created an add-in, and I want to add a custom field in the Inbox Explorer through the code, and show in the current view. I want to do this through the code, so when user open Outlook for the first time, if this field is not in the view it should add the field. I want to distribute this add in to hundred users, and I am looking for better way to customize view other then me going to all of them and doing it manually. Any ideas? Thanks, Goran |
#7
|
|||
|
|||
![]()
If it's already listed in the COM Add-Ins dialog then you have it registered
and have LoadBehavior set to 2. For an addin to load then the host application starts up LoadBehavior needs to be set to 3. -- 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 "goran" wrote in message ... Sorry to bother you again Ken, but I finish customizing the view and everything is fine now. How can I programmatically load the addin so when user starts the outlook it loads it automatically, rather then me going to add-in manager and finding the dll file and adding it manually. Thanks again for your help |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
"customize current view" for ALL folders / subfolders | NeXTstep | Outlook - General Queries | 1 | November 21st 06 02:08 PM |
Customize Current Day Highlight in Outlook Calendar | Dan | Outlook - Calandaring | 1 | September 19th 06 12:49 AM |
outlook menu view/current view is gray | pauls | Outlook - Using Contacts | 0 | August 16th 06 07:16 PM |
Customize Current View in OL 03 | Bob S | Outlook - General Queries | 0 | July 4th 06 10:37 PM |
Problem selecting fields in customize current view | Dave | Outlook - Using Contacts | 0 | February 15th 06 06:14 PM |