item open event

Status
Not open for further replies.
D

dibyaranjan rath

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).
 
K

Ken Slovak - [MVP - Outlook]

No, just NewInspector().

"dibyaranjan rath" <dibyaranjan.rath@hanusoftware.com> wrote in message

news:ui6Dm5grJHA.2368@TK2MSFTNGP06.phx.gbl...
> 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).

>
 
D

dibyaranjan rath

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.
<kenslovak@mvps.org> wrote in message

news:OeH8uUhrJHA.588@TK2MSFTNGP03.phx.gbl...
> No, just NewInspector().

> >

>

> "dibyaranjan rath" <dibyaranjan.rath@hanusoftware.com> wrote in message
> news:ui6Dm5grJHA.2368@TK2MSFTNGP06.phx.gbl...
> > 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).
>

>>

>
 
K

Ken Slovak - [MVP - Outlook]

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().

"dibyaranjan rath" <dibyaranjan.rath@hanusoftware.com> wrote in message

news:ej%23xkqhrJHA.1208@TK2MSFTNGP04.phx.gbl...
> 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.
 
D

dibyaranjan rath

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
<kenslovak@mvps.org> wrote in message

news:%23ImHAojrJHA.3584@TK2MSFTNGP05.phx.gbl...
> 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().

> >

>

> "dibyaranjan rath" <dibyaranjan.rath@hanusoftware.com> wrote in message
> news:ej%23xkqhrJHA.1208@TK2MSFTNGP04.phx.gbl...
> > 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.

>
 
K

Ken Slovak - [MVP - Outlook]

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

other ways.

"dibyaranjan rath" <dibyaranjan.rath@hanusoftware.com> wrote in message

news:%23jHh4RtrJHA.3584@TK2MSFTNGP05.phx.gbl...
> 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
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
J Trapping open mail item event Outlook VBA and Custom Forms 1
talla Can't open Outlook Item. Using Outlook 0
Diane Poremsky Outlook VBA: Work with Open Item or Selected Item Using Outlook 0
D After Moving or Deleting Open Item - Meeting Requests Using Outlook 4
A BCM 2010. Cannot open this item. Error loading form. Some of neede BCM (Business Contact Manager) 3
T Cannot open this item becasue another workstation has modified it. Using Outlook 4
J Addin to trap email item open Outlook VBA and Custom Forms 2
J Addin to trap email item open Outlook VBA and Custom Forms 2
V How to add 'Previous Item' and 'Next Item' to the Quick Access Toolbar Using Outlook 1
O In Agenda-view - How to copy an existing item months ahead or back? Using Outlook 0
S Outlook 2016 dont delete inbox item Using Outlook 0
N Item cannot be saved because it was modified by another user or window, and, Item could not be moved... Using Outlook 0
B Zoom automatically next email item (VBA) Outlook VBA and Custom Forms 2
S Command Button_Click action on Item/Reminder Outlook VBA and Custom Forms 3
A Unflag Inbox and Flag Inbox with Orange Category After Item is send Outlook VBA and Custom Forms 3
A Run-time error '430' on certain emails when trying to set "Outlook.mailitem" as "ActiveExplorer.Selection.Item" Outlook VBA and Custom Forms 2
C Copy Move item won't work Outlook VBA and Custom Forms 2
T Pictures degrade each time an Outlook item is edited and re-saved Using Outlook 1
B Change row background color of selected item Using Outlook 1
P Outlook 2013 "Item could not be moved - still an issue for Outlook 2013 Using Outlook 0
R Error when trying to forward current email item Outlook VBA and Custom Forms 7
geoffnoakes Find Contacts with UDFs "in this item" Using Outlook 1
T "cannot find the calendar folder for this item" - calendar items stuck in outbox Using Outlook 0
GregS Many Sent Item folders Using Outlook 3
B Select / activate first email item in the searched query Using Outlook 1
4 Macro to set the category of Deleted Item? Outlook VBA and Custom Forms 2
N "Discussion" item Using Outlook 3
T outlook.com opens with "item not found" Using Outlook 1
Peter H Williams How to Move Mail item after processing Outlook VBA and Custom Forms 5
C Change default "Save Sent Item To" folder Outlook VBA and Custom Forms 9
M Shortcut to another outlook item Using Outlook 0
M Item edits doesn't always sync Using Outlook 11
Cdub27 Your changes to this item couldn't be saved because Server Denied Operation (HTTP 403 Forbidden) Using Outlook 1
M VBA to change flag status in outlook contact item Outlook VBA and Custom Forms 3
P Replying to calendar item using VBA Outlook VBA and Custom Forms 4
G Outlook item link Using Outlook 0
Q VBA Script to move item in secondary mailbox Outlook VBA and Custom Forms 2
D Save Sent Item to Using Outlook 0
T outlook 2010 mail item count doesnt match display Outlook VBA and Custom Forms 3
Jeanne Goodman Delete Calendar Item Bypassing Deleted Items folder Outlook VBA and Custom Forms 2
Diane Poremsky Display the Created Date field of any Outlook item Using Outlook 0
Z Item.Recipients for Task Assignment on Send Outlook VBA and Custom Forms 10
M How does Outlook determine item numbers in a folder? Outlook VBA and Custom Forms 3
J "This item has been changed still want to delete it" message Using Outlook 3
oliv- HIDE ITEM Outlook VBA and Custom Forms 3
D help with Item/Inspector close event Outlook VBA and Custom Forms 1
T Create new item in public folder using VBscript Outlook VBA and Custom Forms 1
D Shared Mailbox with mail item marked as "private" Using Outlook 0
Diane Poremsky Change Item Count on All Folders in a Data File Using Outlook 0
M Recurring icon for custom form task item Outlook VBA and Custom Forms 6

Similar threads

Top