在vb.net的文本框中显示.Msg文件内容 [英] Displaying .Msg File Content in a textbox in vb.net

查看:117
本文介绍了在vb.net的文本框中显示.Msg文件内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人已经成功读取特定位置或路径中的.msg文件。



我在vb6中做过但我不能在vb中做到这一点。净。我正在使用vb.net 2010.



这是我在vb6中的代码:

 < span class =code-keyword> Dim  Msg  As  RDOMail 
Dim 会话作为 RDOSession

设置 olNs = olApp.GetNamespace( MAPI
设置会话= < span class =code-keyword> New Redemption.RDOSession
Session.Logon

Set Msg = Session .GetMessageFromMsgFile( C:\ This One.msg





使用RDOMail我能够读取.msg文件的内容。请任何人帮助我做他的iin vb.net ...任何帮助都会有所不同。谢谢:)

解决方案

这篇文章是C#,但它应该给你一般的想法。 在C#中读取Outlook MSG文件 [ ^ ]

Does anyone already succeed reading the file .msg in a particular location or path.

I did it in vb6 but I can''t do it in vb.net. I''m using vb.net 2010.

Here is my code in vb6:

Dim Msg As RDOMail
Dim Session As RDOSession

Set olNs = olApp.GetNamespace("MAPI")
Set Session = New Redemption.RDOSession
Session.Logon

Set Msg = Session.GetMessageFromMsgFile("C:\This One.msg")



Using RDOMail I was able to read the content of the .msg file. Please can any one help my to do his iin vb.net...Any help would be vary much appreciated. Thanks :)

解决方案

This article is C#, but it should give you the general idea. Reading an Outlook MSG File in C#[^]


这篇关于在vb.net的文本框中显示.Msg文件内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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