Outlook Addin错误读取Outlook.MailItem的主题 [英] Outlook Addin error reading subject of Outlook.MailItem

查看:108
本文介绍了Outlook Addin错误读取Outlook.MailItem的主题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在VS 2005中有一个Outlook插件。我正在遍历文件夹中的所有电子邮件。有些电子邮件使用"IXOS-ExchangeLink"存档。我的代码看起来像这样


Hello all,
 
I have an Outlook addin in VS 2005. I am looping through all the emails in a folder. There are some emails which are archived using "IXOS-ExchangeLink". My code looks like this


Dim subFolder As Microsoft.Office.Interop.Outlook.MAPIFolder

Dim item As Microsoft.Office.Interop.Outlook.MailItem

....

try

   ..

   item = subFolder.Items(i)

    strCat = item.Categories

catch (ex as exception)



finally

推荐答案

嗨Karthik,

我不知道我可以帮助你多远,但尝试在分配之前将SubFolder.Items(i)类型转换为MailItem,然后跳转帮助你

问候Archana Muralidhar
Hi Karthik,

        I dont know how far i can help you, but try type casting the SubFolder.Items(i) to MailItem before you assign, hopw this helps you

Regards
Archana Muralidhar


这篇关于Outlook Addin错误读取Outlook.MailItem的主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆