F
Fei Yuan
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.
--
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
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.
--
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