Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / July 2003

Tip: Looking for answers? Try searching our database.

Outlook 2003 Beta 2 ItemAdd_Event not triggered properly

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Fei Yuan - 09 Jul 2003 15:25 GMT
Hi Sue,

I'm not concerned with its class property.  What I know is that by sending
the first email, itemAdd event from "Sent Items" returns me a __ComObject
that I cannot cast it to a MailItemClass object.  Then for subsequent
emails, "Sent Items" returns me regular MailItemClass objects that are fine.

So my questions are: 1. why did the event returns me a __ComObject at the
first time?  2. if i do check its class property, how do I cast it or
convert it to a MailItemClass?

Regards,
- Fei -

--------------------------------------

I did read your question carefully. I would check the Class property of the
item, not just TypeName to try to understand better what might be happening.
AFAIK, this is not a known issue with 2003.
Signature

Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
    Microsoft Outlook Programming: Jumpstart
    for Administrators, Power Users, and Developers
    http://www.slipstick.com/books/jumpstart.htm

"Fei Yuan" <fei@carmelvision.com> wrote in message
news:e6DfdxVRDHA.2232@TK2MSFTNGP11.phx.gbl...

> I'm not talking about meeting request or a task request.  I know that I
sent
> a mail item, but the event wasn't triggered properly.  Please read my
> question carefully.  Thanks.
>
> > I know that Outlook 2003 Beta 2 is still in Beta version and not
supported
> > by Microsoft.  But I hope I can describe my issue here so that it gets
> fixed
> > in the upcoming final version.
> >
> > Currently I'm developing a COM Add-in for Outlook 2003 Beta 2 with
Visual
> > Studio .NET 2003.  Outlook 2003 has been patched with the latest
Technical
> > Refresh for Office 2003 Beta 2.  I'm using Outlook 2003's native .NET
> > programming support as COM Interop.
> >
> > I found that the ItemAdd_Event handler on Outlook.Items object is not
> > triggered properly.  I'm monitoring new items in the "Sent Items"
folders,
> > and when the first time a new email is added to this folder, the object
> > passed to the event handler is not a MailItemClass object, but an object
> of
> > type name "__ComObject".  This results failure to cast it properly back
to
> > the MailItemClass object.  Despite the first time failure, the
subsequent
> > triggers work fine with passing a MailItemClass object correctly.
> >
> > Please let me know if this problem has been recognized already.
> >
> > Regards,
> > - Fei -
> >
> ----------
Sue Mosher [MVP] - 09 Jul 2003 18:23 GMT
I don't know the answer to either of your questions. I am trying to find out more information, so that we can understand this issue better. Knowing the value of the Class property would help.

> Hi Sue,
>
[quoted text clipped - 51 lines]
> > >
> > ----------
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.