Using either:

Private Sub myInspector_NewInspectr(ByVal Inspector As Outlook.Inspector)

or

Application_ItemLoad(ByVal Item As Object)

I need to find out if Inspector.CurrentItem or the Item loaded are opened from inside of outlook (by clicking an email) or by openning a .msg or .oft file saved somewhere.

I also need to find out the name of the file and the path to it.

Is there a way to do that?

有帮助吗?

解决方案

You cannot do that. More than that, recent (Outlook 2007 and newer) versions first create a temporary message in the primary store first when you double click on an MSG file.,

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top