I am having a problem having my item read what is inside of a folder and tell me so I can go ahead and copy the item.
I am using vs 2003, c#
Here is my code:
Outlook.Application oApp = new Outlook.ApplicationClass();
Outlook.NameSpace oNS = oApp.GetNamespace("MAPI");
Outlook.Folders oFolder = (Outlook.Folders) oNS.Folders;
Outlook.Items oItems = oFolder.Item("*****").Folders.Item("*****").Folders.Item("*****").Folders.Item("*****").Folders.Item("*****").Folders.Item("*****").Items;
for (int i=1; i <= oItems.Count; i++)
{
Console.WriteLine(oItems.Item(i).ToString());
}
Console.WriteLine("Press any key too continue...");
Console.ReadLine();
How Do you get the information about the stuff inside the folders. Here is to item(x).something that will do that. I need Help.
I am using vs 2003, c#
Here is my code:
Outlook.Application oApp = new Outlook.ApplicationClass();
Outlook.NameSpace oNS = oApp.GetNamespace("MAPI");
Outlook.Folders oFolder = (Outlook.Folders) oNS.Folders;
Outlook.Items oItems = oFolder.Item("*****").Folders.Item("*****").Folders.Item("*****").Folders.Item("*****").Folders.Item("*****").Folders.Item("*****").Items;
for (int i=1; i <= oItems.Count; i++)
{
Console.WriteLine(oItems.Item(i).ToString());
}
Console.WriteLine("Press any key too continue...");
Console.ReadLine();
How Do you get the information about the stuff inside the folders. Here is to item(x).something that will do that. I need Help.