Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Howto: set ShowAsOutlookAB using Extended MAPI

Geek News

Howto: set ShowAsOutlookAB using Extended MAPI
tonyl <tonyl[ at ]outblaze.com> 2/28/2007 10:02:43 AM
Hi,

I have problem on setting the ShowAsOutlookAB (i saw it in outlookspy)
of MAPIFolder (contact folder) to true when my application creates a contact
folder using extended MAPI. Anyone know how to do it?

Regards,
Tony

Re: Howto: set ShowAsOutlookAB using Extended MAPI
"Johannes" <jkienzle[ at ]gmail.com> 2/28/2007 7:47:41 PM
I'm not sure there's a MAPI property for this but why don't you just
use OOM for this? Use the folder's EntryID to get the
Outlook::MAPIFolder and set the property to true.

Something like this should work:

Outlook::_NameSpacePtr ns = myOutlookApp->Session;
Outlook::MAPIFolderPtr pFolder = ns->GetFolderFromID(folderEntryID,
vtMissing);
pFolder->ShowOutlookAsAB = VARIANT_TRUE;

Re: Howto: set ShowAsOutlookAB using Extended MAPI
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 3/1/2007 5:19:28 PM
See
http://groups.google.com/group/microsoft.public.win32.programmer.messaging/browse_frm/thread/8a58ca7858ed0e11/bfc9d5f937e8a7e7?lnk=st&q=0x66100102&rnum=1&hl=en#

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"tonyl" <tonyl[ at ]outblaze.com> wrote in message
news:9d0a029615dc08c92979c7a04e3e[ at ]news.microsoft.com...
[Quoted Text]
> Hi,
>
> I have problem on setting the ShowAsOutlookAB (i saw it in outlookspy)
> of MAPIFolder (contact folder) to true when my application creates a
> contact folder using extended MAPI. Anyone know how to do it?
>
> Regards,
> Tony
>
>


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net