View Single Post
  #5  
Old November 12th 07, 07:17 AM posted to microsoft.public.outlook.program_addins
Mike
external usenet poster
 
Posts: 332
Default Redemption, creating Exchange folders, and making them invisib

Yes, I'm familiar with the fact that Outlook Spy doesn't require code, but I
meant are there any Redemption code samples that I could peruse to view how
to create the invisible folder you talk about.

The reason is, I am using a third party control to embed a form in the Web
View pane of Outlook, and to do that the form is associated with a folder. I
don't really need the folder to be visible to do that since there will be
toolbar buttons available for the navigation to the form, so I thought if it
was a simple Redemption or OOM call, I'd just make the folder invisible to
aviod confusion. Thanks again.

"Dmitry Streblechenko" wrote:

OutlookSpy (unlike Redemption) does not require any code, it simply lets you
see how Outlook data is stored.
What exactly are you trying to do with the folder?

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

"Mike" wrote in message
...
Thank you Dmitry. I am not at all familiar with Outlook Spy. Are there
any
code samples availabe anywhere to do what you are stating? Thanks again.


"Dmitry Streblechenko" wrote:

Redemption (or MAPI for that matter) cannot make a fodler invisible
per-se,
but you can create teh folder where it will be invisible to an end user,
e.g. in the non-IPM tree.
Redemption lets you do that by providing access to teh
RDOStore.RootFolder
(root folder invisible) and RDOStore.IPMRootFolder (which is the top
visible
folder and is a child of the RootFolder).
Play with this in OutlookSpy - click ImsgStore, then "Open Root
Container"
and go to the GetHierarchyTable tab.

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

"Mike" wrote in message
...
I am currently creating a MAPIFolder by doing the following:

Outlook._Application olApp = OutlookApp;
Outlook._NameSpace olNs = olApp.GetNamespace("MAPI");

Outlook.MAPIFolder mapifolderRoot =
(Outlook.MAPIFolder)olNs.GetDefaultFolder(Outlook. OlDefaultFolders.olFolderInbox).Parent;

_mapifolderArchive3 = mapifolderRoot.Folders.Add(_sCustomFolderName,
Outlook.OlDefaultFolders.olFolderInbox);

Since the OOM doesn't allow toggling of folder visibility, and I hear
that
Redemption does, how can I
1) Use Redemption to create the folder and mark it invisible
2) Keep the code above and just use Redemption to hide it

Thanks for the assistance.







Ads