View Single Post
  #1  
Old July 6th 06, 06:53 AM posted to microsoft.public.outlook.program_addins
Fidget Brain
external usenet poster
 
Posts: 8
Default Remove Standard View in Outlook 2007?

i have created a custom MAPIFolder and would like to remove some of the
default views. I get a COM exception when I try this. Is this a bug in the
Beta code or is it just not possible?

here is my code:

Outlook.Folder contactsFolder = (Outlook.Folder)
this.Application.GetNamespace("MAPI").GetDefaultFo lder(Outlook.OlDefaultFolders.olFolderContacts);
Outlook.Folder myFolder = (Outlook.Folder) contactsFolder.Add("MyFolder",
System.Reflection.Missing.Value);
myFolder.Views["By Location"].Delete();


Ads