Re: Checking type of a MAPIFolder
- From: "Pablo Alvarez Doval" <pablod@xxxxxxxxxxxxxxxxx>
- Date: Fri, 23 Mar 2007 04:54:47 +0100
Thanks, in the end it ws a syntax problem.. I'm having some quite silly days lately :P thanks!
By the way.. I've created a new .pst with a contacts folder there, but when I create a new contact like this...
MSOutlook.ContactItem contact = null;
contact = (MSOutlook.ContactItem)Globals.GRAAddIn.Application.CreateItem(MSOutlook.OlItemType.olContactItem);
.... I get the contact added to the contacts folder on the original .pst... is the a way to change this, or to change the default contacts folder?
Thanks a lot!
Pablo
"Ken Slovak - [MVP - Outlook]" <kenslovak@xxxxxxxx> wrote in message news:%23H6bDaIbHHA.5044@xxxxxxxxxxxxxxxxxxxxxxx
MAPIFolder.DefaultItemType. It returns a 32-bit int that's a member of the OlItemType enum, for contacts you're looking for olContactItem which has a value of 2.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"Pablo Alvarez Doval" <pablod@xxxxxxxxxxxxxxxxx> wrote in message news:B4F98310-0930-41C8-9BE4-DD3F44432072@xxxxxxxxxxxxxxxxHi all,
I'm trying to iterate thru all the MAPIFolders in my personal store and get the contacts one. How could I get the 'type' of a folder (say if it is a contacts folder, or an inbox, etc...)? Thanks a lot!
Best Regards!
Pablo
.
- Follow-Ups:
- Re: Checking type of a MAPIFolder
- From: Pablo Alvarez Doval
- Re: Checking type of a MAPIFolder
- References:
- Checking type of a MAPIFolder
- From: Pablo Alvarez Doval
- Re: Checking type of a MAPIFolder
- From: Ken Slovak - [MVP - Outlook]
- Checking type of a MAPIFolder
- Prev by Date: Re: Can't help myself...
- Next by Date: Re: Checking type of a MAPIFolder
- Previous by thread: Re: Checking type of a MAPIFolder
- Next by thread: Re: Checking type of a MAPIFolder
- Index(es):
Relevant Pages
|
|