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

item open event



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 26th 09, 12:26 PM posted to microsoft.public.outlook.program_addins
dibyaranjan rath
external usenet poster
 
Posts: 4
Default item open event

In my outlook addin New inspector event (new inspector created) and
MailItem_Open event called when a mail item is open from outlook or from
hard drive. Is there any other event(like in explorer.application,folder)
which is called before these 2 events and which tells the difference from
where the mailitem is open (outlook or hard drive).


Ads
  #2  
Old March 26th 09, 01:16 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default item open event

No, just NewInspector().

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"dibyaranjan rath" wrote in message
...
In my outlook addin New inspector event (new inspector created) and
MailItem_Open event called when a mail item is open from outlook or from
hard drive. Is there any other event(like in explorer.application,folder)
which is called before these 2 events and which tells the difference from
where the mailitem is open (outlook or hard drive).



  #3  
Old March 26th 09, 01:53 PM posted to microsoft.public.outlook.program_addins
dibyaranjan rath
external usenet poster
 
Posts: 4
Default item open event

Ok. When open mail item from hard disk then outlook place it in active
inspector and shows Inbox as its parent folder. Can we capture these events
when it attach to inspector.
"Ken Slovak - [MVP - Outlook]" wrote in message
...
No, just NewInspector().

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"dibyaranjan rath" wrote in message
...
In my outlook addin New inspector event (new inspector created) and
MailItem_Open event called when a mail item is open from outlook or from
hard drive. Is there any other event(like in explorer.application,folder)
which is called before these 2 events and which tells the difference from
where the mailitem is open (outlook or hard drive).





  #4  
Old March 26th 09, 05:37 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default item open event

You can capture NewInspector(), unless the item was opened by using Send To
in order to attach a file to a new email. In that case NewInspector()
doesn't even fire.

If an item is changed in an existing Inspector you can handle the
item.Open() event. However, I don't think that's what's actually happening,
I think a new Inspector is opened and the previous one is closed.

If the item is actually added to Inbox you could handle Inbox.Items.Add().

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"dibyaranjan rath" wrote in message
...
Ok. When open mail item from hard disk then outlook place it in active
inspector and shows Inbox as its parent folder. Can we capture these
events when it attach to inspector.


  #5  
Old March 27th 09, 12:03 PM posted to microsoft.public.outlook.program_addins
dibyaranjan rath
external usenet poster
 
Posts: 4
Default item open event

I tried with Inbox.Items.Add(). Sometime Inbox.Items.Add() is fire before
onnewinspector & inspector_activate() when open mailitem from hard disk.
But sometime it's fired after onnewinspector & inspector_activate() events,
for this case if i check the parent item name for mailitem in onnewinspector
then it shows Inbox while Inbox.Items.Add() is not yet fired.
So due to this i cant find the difference between mail open from
outlook/hard drive
"Ken Slovak - [MVP - Outlook]" wrote in message
...
You can capture NewInspector(), unless the item was opened by using Send
To in order to attach a file to a new email. In that case NewInspector()
doesn't even fire.

If an item is changed in an existing Inspector you can handle the
item.Open() event. However, I don't think that's what's actually
happening, I think a new Inspector is opened and the previous one is
closed.

If the item is actually added to Inbox you could handle Inbox.Items.Add().

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"dibyaranjan rath" wrote in message
...
Ok. When open mail item from hard disk then outlook place it in active
inspector and shows Inbox as its parent folder. Can we capture these
events when it attach to inspector.




  #6  
Old March 27th 09, 02:39 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default item open event

That's what's available, if it doesn't do what you want I don't know of any
other ways.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"dibyaranjan rath" wrote in message
...
I tried with Inbox.Items.Add(). Sometime Inbox.Items.Add() is fire before
onnewinspector & inspector_activate() when open mailitem from hard disk.
But sometime it's fired after onnewinspector & inspector_activate()
events, for this case if i check the parent item name for mailitem in
onnewinspector then it shows Inbox while Inbox.Items.Add() is not yet
fired.
So due to this i cant find the difference between mail open from
outlook/hard drive


 




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 Mail Item Open Event Doesn't Work Nenad Dobrilovic Add-ins for Outlook 3 October 8th 08 02:28 PM
Event loop when saving Task item in event handler Mustafa Add-ins for Outlook 1 August 8th 08 06:24 PM
unable to open recurring calendar events. "Can't open this item. Don Bosco Outlook - Calandaring 1 January 10th 08 12:45 AM
Item Open event does not occurs every time sfradel Add-ins for Outlook 1 September 2nd 06 04:33 PM
can't open this item unable to open the free/busy information Patamit Outlook - Calandaring 0 March 8th 06 04:31 PM


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