Programmatically creating views with custom fields problem

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?
 
S

Sue Mosher [MVP-Outlook]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top