Programmatically creating views with custom fields problem

  • Thread starter Thread starter R Avery
  • Start date Start date
R

R Avery

Outlook XP

I have the following problem (which, if there is a simpler way to solve
it, please let me know!):

I have a bunch of public folders that I want to programmatically create,
and set the current view to a custom view with a custom field.

I have saved the XML for the custom view that I want in an XML file, and
the approach I have taken is to create the folders, add a view object to
it and set the XML of the object to that contained in the previous saved
file, and then set the currentview of the activeexplorer object to that
custom view.


The problem is that the custom field was not successfully imported. Any
idea what is wrong or how to fix it?
 
Defining the field in the folder is a separate operation, unrelated to
creating a custom view. Create an item in the folder, then use its
UserProperties.Add method to add the desired property.
 
Back
Top