A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Redemption Foldes.Add doesn't work



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 10th 09, 05:31 PM posted to microsoft.public.outlook.program_addins,microsoft.public.outlook.program_vba,microsoft.public.platformsdk.mapi
escamoteur
external usenet poster
 
Posts: 147
Default Redemption Foldes.Add doesn't work

I tried this here. The Store is created, fine, but the folder is not created although the returned RDOFolder is not null

I use Outlook 2007

RDOSession Session = new RDOSessionClass();// CreateObject("Redemption.RDOSession");
//Use the MAPI session from Outlook Object Model
Session.MAPIOBJECT = theApp.Instance.Application.Session.MAPIOBJECT;
RDOStore Store = (RDOStore) Session.Stores.AddPSTStore(path, 2, "ArtistsOrganizer");
RDOFolder folder = Store.RootFolder.Folders.Add("Opportunities", "IPM.Task.ArtistsOrganizer.BO");


Ads
  #2  
Old September 10th 09, 05:38 PM posted to microsoft.public.outlook.program_addins,microsoft.public.outlook.program_vba,microsoft.public.platformsdk.mapi
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Redemption Foldes.Add doesn't work

REplace the line
RDOFolder folder = Store.RootFolder.Folders.Add("Opportunities",
"IPM.Task.ArtistsOrganizer.BO");
with
RDOFolder folder = Store.IPMRootFolder.Folders.Add("Opportunities",
"IPM.Task.ArtistsOrganizer.BO");

Note that root folder of any store is not visible - Outlook creates
invisible and search folders there.
What you need is the root IPM folder (which is a subfolder of the root
folder).
You can look at the folders in OutlookSpy - click IMsgStore button in the
OutlookSpy toolbar, then click "Open Root Container" and go to the
GetHierarchyTable tab.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"escamoteur" wrote in message
...
I tried this here. The Store is created, fine, but the folder is not
created although the returned RDOFolder is not null

I use Outlook 2007

RDOSession Session = new RDOSessionClass();//
CreateObject("Redemption.RDOSession");
//Use the MAPI session from Outlook Object Model
Session.MAPIOBJECT =
theApp.Instance.Application.Session.MAPIOBJECT;
RDOStore Store = (RDOStore)
Session.Stores.AddPSTStore(path, 2, "ArtistsOrganizer");
RDOFolder folder =
Store.RootFolder.Folders.Add("Opportunities",
"IPM.Task.ArtistsOrganizer.BO");




  #3  
Old September 10th 09, 05:47 PM posted to microsoft.public.outlook.program_addins,microsoft.public.outlook.program_vba,microsoft.public.platformsdk.mapi
escamoteur
external usenet poster
 
Posts: 147
Default Redemption Foldes.Add doesn't work

Does the GetRootFolder Method of OOM return in reality the IPMRootFolder?

Because this here was my former code

theApp.Instance.Application.Session.AddStoreEx(,Mi crosoft.Office.Interop.Outlook.OlStoreType.olStore Unicode);
Outlook.MAPIFolder rootFolder = (Outlook.Folder) AO_Store.GetRootFolder();
rootFolder.Name = ;
//Create Folders
BO_Folder = (Outlook.Folder)rootFolder.Folders.Add("Oportuniti es", Outlook.OlDefaultFolders.olFolderTasks);

And that worked


"Dmitry Streblechenko" schrieb im Newsbeitrag ...
REplace the line
RDOFolder folder = Store.RootFolder.Folders.Add("Opportunities",
"IPM.Task.ArtistsOrganizer.BO");
with
RDOFolder folder = Store.IPMRootFolder.Folders.Add("Opportunities",
"IPM.Task.ArtistsOrganizer.BO");

Note that root folder of any store is not visible - Outlook creates
invisible and search folders there.
What you need is the root IPM folder (which is a subfolder of the root
folder).
You can look at the folders in OutlookSpy - click IMsgStore button in the
OutlookSpy toolbar, then click "Open Root Container" and go to the
GetHierarchyTable tab.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"escamoteur" wrote in message
...
I tried this here. The Store is created, fine, but the folder is not
created although the returned RDOFolder is not null

I use Outlook 2007

RDOSession Session = new RDOSessionClass();//
CreateObject("Redemption.RDOSession");
//Use the MAPI session from Outlook Object Model
Session.MAPIOBJECT =
theApp.Instance.Application.Session.MAPIOBJECT;
RDOStore Store = (RDOStore)
Session.Stores.AddPSTStore(path, 2, "ArtistsOrganizer");
RDOFolder folder =
Store.RootFolder.Folders.Add("Opportunities",
"IPM.Task.ArtistsOrganizer.BO");




  #4  
Old September 10th 09, 05:49 PM posted to microsoft.public.outlook.program_addins,microsoft.public.outlook.program_vba,microsoft.public.platformsdk.mapi
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Redemption Foldes.Add doesn't work

Yes, Store.GetRotFolder returns the IPM root folder, not the topmost folder
in the store.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"escamoteur" wrote in message
news
Does the GetRootFolder Method of OOM return in reality the IPMRootFolder?

Because this here was my former code


theApp.Instance.Application.Session.AddStoreEx(,Mi crosoft.Office.Interop.Outlook.OlStoreType.olStore Unicode);
Outlook.MAPIFolder rootFolder = (Outlook.Folder)
AO_Store.GetRootFolder();
rootFolder.Name = ;
//Create Folders
BO_Folder =
(Outlook.Folder)rootFolder.Folders.Add("Oportuniti es",
Outlook.OlDefaultFolders.olFolderTasks);

And that worked


"Dmitry Streblechenko" schrieb im Newsbeitrag
...
REplace the line
RDOFolder folder = Store.RootFolder.Folders.Add("Opportunities",
"IPM.Task.ArtistsOrganizer.BO");
with
RDOFolder folder = Store.IPMRootFolder.Folders.Add("Opportunities",
"IPM.Task.ArtistsOrganizer.BO");

Note that root folder of any store is not visible - Outlook creates
invisible and search folders there.
What you need is the root IPM folder (which is a subfolder of the root
folder).
You can look at the folders in OutlookSpy - click IMsgStore button in the
OutlookSpy toolbar, then click "Open Root Container" and go to the
GetHierarchyTable tab.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"escamoteur" wrote in message
...
I tried this here. The Store is created, fine, but the folder is not
created although the returned RDOFolder is not null

I use Outlook 2007

RDOSession Session = new RDOSessionClass();//
CreateObject("Redemption.RDOSession");
//Use the MAPI session from Outlook Object Model
Session.MAPIOBJECT =
theApp.Instance.Application.Session.MAPIOBJECT;
RDOStore Store = (RDOStore)
Session.Stores.AddPSTStore(path, 2, "ArtistsOrganizer");
RDOFolder folder =
Store.RootFolder.Folders.Add("Opportunities",
"IPM.Task.ArtistsOrganizer.BO");




 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Redemption Foldes.Add doesn't work escamoteur Outlook and VBA 3 September 10th 09 05:49 PM
redemption code doesn't work vonClausowitz Outlook and VBA 8 June 17th 08 11:25 PM
Greek Fonts Dont work in Office but work in Windows George Outlook - Using Contacts 0 May 16th 07 10:33 PM
How do I customize my work week if I work different hours daily? Pratherer Outlook - Calandaring 1 October 31st 06 05:57 AM
e-mail alerts don't work,setup but don't work- Studmn1 Outlook - General Queries 3 August 24th 06 09:38 PM


All times are GMT +1. The time now is 09:10 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.