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

How to get current folder



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 13th 09, 11:25 AM posted to microsoft.public.outlook.program_addins
Ashish
external usenet poster
 
Posts: 94
Default How to get current folder

Hi,

I am creating an addin for outlook. I handle the case when create a new
folder. For this i sink event for FoldersEvents.
My question is when i create a new folder how to get that folder name?
I tried to use Application-ActiveExplorer-CurrentFolder
but it gived different folder.
Please suggest


Ads
  #2  
Old February 13th 09, 12:54 PM posted to microsoft.public.outlook.program_addins
Ashish
external usenet poster
 
Posts: 94
Default How to get current folder

How to implement FolderEvents in c++.
FolderAdd

FolderChange

FolderRemove



Please give some example


  #3  
Old February 13th 09, 04:33 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default How to get current folder

Search for IConnectionPointContainer etc.
Or use the wrapper classes created by VC++ when you import a type library
using #import.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Ashish" wrote in message
...
How to implement FolderEvents in c++.
FolderAdd

FolderChange

FolderRemove



Please give some example




  #4  
Old February 17th 09, 07:00 AM posted to microsoft.public.outlook.program_addins
Ashish
external usenet poster
 
Posts: 94
Default How to get current folder

Thanks. Well i have one doubt which i want to clear. Is there any property
for a folder which tells the folder is newly created or it's old.
I handle the events for folder. When i create a new folder (suppose i
create a folder subinbox under Inbox folder) then first FolderChange
function call for Inbox, after that FolderAdd function call for subinbox.
How can i know Inbox is already created and subinbox i'm creating now. there
must be some property. I have checked all but could not find. Please
suggest.
"Dmitry Streblechenko" wrote in message
...
Search for IConnectionPointContainer etc.
Or use the wrapper classes created by VC++ when you import a type library
using #import.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Ashish" wrote in message
...
How to implement FolderEvents in c++.
FolderAdd

FolderChange

FolderRemove



Please give some example






  #5  
Old February 17th 09, 05:58 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default How to get current folder

What is "newly created or it's old"? Is it 1 second old? 1 week old?
There is no such property.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Ashish" wrote in message
...
Thanks. Well i have one doubt which i want to clear. Is there any property
for a folder which tells the folder is newly created or it's old.
I handle the events for folder. When i create a new folder (suppose i
create a folder subinbox under Inbox folder) then first FolderChange
function call for Inbox, after that FolderAdd function call for subinbox.
How can i know Inbox is already created and subinbox i'm creating now.
there must be some property. I have checked all but could not find. Please
suggest.
"Dmitry Streblechenko" wrote in message
...
Search for IConnectionPointContainer etc.
Or use the wrapper classes created by VC++ when you import a type library
using #import.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Ashish" wrote in message
...
How to implement FolderEvents in c++.
FolderAdd

FolderChange

FolderRemove



Please give some example








  #6  
Old February 18th 09, 06:46 AM posted to microsoft.public.outlook.program_addins
Ashish
external usenet poster
 
Posts: 94
Default How to get current folder

FolderAdd is called when we create a new folder and outlook register this
folder (assign its store id, entry id etc).
Is there any function which call before outlook register this folder? means
when i create a new folder FolderAdd will call for this folder. But at that
time outlook already register this folder(assign storeid,entry id). Is there
any other function which call before outlook assign entryid,storeid to this
folder?

"Dmitry Streblechenko" wrote in message
...
What is "newly created or it's old"? Is it 1 second old? 1 week old?
There is no such property.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Ashish" wrote in message
...
Thanks. Well i have one doubt which i want to clear. Is there any
property for a folder which tells the folder is newly created or it's
old.
I handle the events for folder. When i create a new folder (suppose i
create a folder subinbox under Inbox folder) then first FolderChange
function call for Inbox, after that FolderAdd function call for subinbox.
How can i know Inbox is already created and subinbox i'm creating now.
there must be some property. I have checked all but could not find.
Please suggest.
"Dmitry Streblechenko" wrote in message
...
Search for IConnectionPointContainer etc.
Or use the wrapper classes created by VC++ when you import a type
library using #import.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Ashish" wrote in message
...
How to implement FolderEvents in c++.
FolderAdd

FolderChange

FolderRemove



Please give some example










  #7  
Old February 18th 09, 03:46 PM posted to microsoft.public.outlook.program_addins
Andrei Smolin [Add-in Express][_2_]
external usenet poster
 
Posts: 5
Default How to get current folder

Hello Ashish,

There's no such event or property.

Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
www.add-in-express.com

"Ashish" wrote in message
...
FolderAdd is called when we create a new folder and outlook register this
folder (assign its store id, entry id etc).
Is there any function which call before outlook register this folder?
means when i create a new folder FolderAdd will call for this folder. But
at that time outlook already register this folder(assign storeid,entry
id). Is there any other function which call before outlook assign
entryid,storeid to this folder?

"Dmitry Streblechenko" wrote in message
...
What is "newly created or it's old"? Is it 1 second old? 1 week old?
There is no such property.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Ashish" wrote in message
...
Thanks. Well i have one doubt which i want to clear. Is there any
property for a folder which tells the folder is newly created or it's
old.
I handle the events for folder. When i create a new folder (suppose i
create a folder subinbox under Inbox folder) then first FolderChange
function call for Inbox, after that FolderAdd function call for
subinbox. How can i know Inbox is already created and subinbox i'm
creating now. there must be some property. I have checked all but could
not find. Please suggest.
"Dmitry Streblechenko" wrote in message
...
Search for IConnectionPointContainer etc.
Or use the wrapper classes created by VC++ when you import a type
library using #import.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Ashish" wrote in message
...
How to implement FolderEvents in c++.
FolderAdd

FolderChange

FolderRemove



Please give some example












  #8  
Old February 19th 09, 10:50 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default How to get current folder

No, all MAPI events are asynchronous and occur after the action (new folder
creation in your case) had already taken place.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Ashish" wrote in message
...
FolderAdd is called when we create a new folder and outlook register this
folder (assign its store id, entry id etc).
Is there any function which call before outlook register this folder?
means when i create a new folder FolderAdd will call for this folder. But
at that time outlook already register this folder(assign storeid,entry
id). Is there any other function which call before outlook assign
entryid,storeid to this folder?

"Dmitry Streblechenko" wrote in message
...
What is "newly created or it's old"? Is it 1 second old? 1 week old?
There is no such property.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Ashish" wrote in message
...
Thanks. Well i have one doubt which i want to clear. Is there any
property for a folder which tells the folder is newly created or it's
old.
I handle the events for folder. When i create a new folder (suppose i
create a folder subinbox under Inbox folder) then first FolderChange
function call for Inbox, after that FolderAdd function call for
subinbox. How can i know Inbox is already created and subinbox i'm
creating now. there must be some property. I have checked all but could
not find. Please suggest.
"Dmitry Streblechenko" wrote in message
...
Search for IConnectionPointContainer etc.
Or use the wrapper classes created by VC++ when you import a type
library using #import.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Ashish" wrote in message
...
How to implement FolderEvents in c++.
FolderAdd

FolderChange

FolderRemove



Please give some example












 




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
Outlook Script : How to get the current Folder bbnimda Outlook and VBA 3 November 21st 07 03:23 PM
modifing runAllInboxRules to allow selection of folder, or to run in current folder including subfolders Bruce Outlook and VBA 3 September 7th 07 06:49 AM
How can i determine the current date of the calendar folder? [email protected] Outlook - Using Forms 0 September 26th 06 02:20 PM
Can't get code to put data into current folder John E. Outlook - Using Forms 3 September 16th 06 03:54 AM
Using VBA code to move current message to a folder Dean Outlook and VBA 4 February 26th 06 01:46 AM


All times are GMT +1. The time now is 08:24 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.