>I have handled new mail events for OL XP. but while installing in OL2003
>its
> giving error
> "could not load type outlook.applicationevents_11_ newemaileventHandler
> from
> asembly interop.outlook " >> OBVIOUSLY its version difference <<
> but is there any way out to handle/get such event which can handle new
> mail
> event in all outlook versions?
> Any workarounds to capture all versions newemaileventhandler !!!??
> please reply, is it possible to do that?
>
> I have tried with addin
> outlook 2003(11 object lib (v. 9.2)) >> works in OL2003 only
> outlook 2002(10 object lib (v. 9.1)) >> works in OL2002(XP) only
> and again OL2000 is having annoying different "FEATURES" to work with.
> I don't understand how to do that thing work !!
>
> I have seen OutlookSpy >> "an addin" works with any outlook !! So
> there must not be different code for each outlook !
> (though not at my scenario of new mail but still it works)
> Then my add-in should work too.
>
> the error i am getting is:
> "system.runtime.interopservices.comexception(0x80040200.........
> at outlook.applicationevents_11_EventProvider.init()...
> ................................."
>
>
> this occurs when i try to get the applicationObject in to a variable.
> outapp = ApplicationObject
>
> outapp object is responsible to handle the new-email-events and hence
> i must have to declare it
> WITHEVENTS outapp as outlook.application
>
> this is where problem lies !!
> outlook.application is Ref. to OL2003
> applicationObject is of OL-2002(XP)
> so is there any way out to get out of this !!
>
> --
> Message posted via
http://www.officekb.com>