本文介绍了从outlook 2010读取邮件正文时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我正在尝试阅读我的Outlook 2010收件箱,所有工作都很好,直到我开始阅读我的邮件正文I am trying to read my Outlook 2010 inbox and all works good until I start reading my mail bodyMyOutlookItem = ((Microsoft.Office.Interop.Outlook.MailItem)myInbox.Items[ItemNo]);...string body = MyOutlookItem.Body'MyOutlookItem.Body threw an exception of type 'System.Runtime.InteropServices.COMException' 任何人都可以帮助我 提前致谢 我尝试了什么: 添加所有可能的引用 检查MyOutlookItem是否为NULLCan any one help meThanks in AdvanceWhat I have tried:All possible references are addedMyOutlookItem is checked for NULL推荐答案似乎不是编程问题... 显示这样的错误当特权级别不够时。请参阅:使用C#程序读取Outlook日历约会时出错 - Stack Overflow [ ^ ]Seems that isn't programming issue...Such of error is displayed when the level of privileges in not enough. Please see: Error Reading Outlook Calendar Appointment with C# program - Stack Overflow[^] thenewbee [ ^ ]写道:但令我困惑的是我尝试从Ms Access访问相同的Outlook文件夹,它成功检索到所有邮件正文,没有错误。 是否使用其他机制访问文件夹?But what confuses me is that I tried to access the same outlook folder from Ms Access and it successfully retrieved all mail body with no errors.Is Access using another mechanism to access the folders? 好​​吧,如果这不是特权问题...检查防病毒软件:从Visual Basic中读取邮件正文崩溃 [ ^ ] 最后,我建议更改 BodyFormat [ ^ ]到纯文本,然后才能访问 Body 。Well, if this is not privileges issue... Check antivirus software: Reading email body crashes from Visual Basic[^]Finally, i'd suggest to change BodyFormat[^] to "Plain Text" before you'll access to Body. 这篇关于从outlook 2010读取邮件正文时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-18 20:53