1. <i id='lz2Y8'><tr id='lz2Y8'><dt id='lz2Y8'><q id='lz2Y8'><span id='lz2Y8'><b id='lz2Y8'><form id='lz2Y8'><ins id='lz2Y8'></ins><ul id='lz2Y8'></ul><sub id='lz2Y8'></sub></form><legend id='lz2Y8'></legend><bdo id='lz2Y8'><pre id='lz2Y8'><center id='lz2Y8'></center></pre></bdo></b><th id='lz2Y8'></th></span></q></dt></tr></i><div id='lz2Y8'><tfoot id='lz2Y8'></tfoot><dl id='lz2Y8'><fieldset id='lz2Y8'></fieldset></dl></div>
      <tfoot id='lz2Y8'></tfoot>

      • <bdo id='lz2Y8'></bdo><ul id='lz2Y8'></ul>

      <small id='lz2Y8'></small><noframes id='lz2Y8'>

        <legend id='lz2Y8'><style id='lz2Y8'><dir id='lz2Y8'><q id='lz2Y8'></q></dir></style></legend>
      1. 阅读 Outlook .msg 文件

        时间:2023-07-24
          <bdo id='07ZZs'></bdo><ul id='07ZZs'></ul>
            <tbody id='07ZZs'></tbody>

        • <legend id='07ZZs'><style id='07ZZs'><dir id='07ZZs'><q id='07ZZs'></q></dir></style></legend>

            1. <i id='07ZZs'><tr id='07ZZs'><dt id='07ZZs'><q id='07ZZs'><span id='07ZZs'><b id='07ZZs'><form id='07ZZs'><ins id='07ZZs'></ins><ul id='07ZZs'></ul><sub id='07ZZs'></sub></form><legend id='07ZZs'></legend><bdo id='07ZZs'><pre id='07ZZs'><center id='07ZZs'></center></pre></bdo></b><th id='07ZZs'></th></span></q></dt></tr></i><div id='07ZZs'><tfoot id='07ZZs'></tfoot><dl id='07ZZs'><fieldset id='07ZZs'></fieldset></dl></div>
              <tfoot id='07ZZs'></tfoot>

              <small id='07ZZs'></small><noframes id='07ZZs'>

                • 本文介绍了阅读 Outlook .msg 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我相信读取 Outlook .msg 文件(以获取额外的元数据,如主题、附件等)的唯一方法是使用 Outlook API - Application.Session.OpenSharedItem() 方法.

                  I believe that the only way to read an Outlook .msg file (in order to extra metadata like subject, attachments etc), is to use the Outlook API - the Application.Session.OpenSharedItem() method.

                  如果是这种情况,那么我正在寻找在我们的应用程序服务器上运行此代码的方法,该服务器没有安装 MS Office 或 MS Outlook.我收到了错误

                  If this is the case, then I am looking for way to run this code on our application server, which doesn't have MS OFfice or MS Outlook installed. I'm getting the error

                  System.ArgumentException: progId not found. Outlook.Application
                  

                  这当然是因为没有 Outlook 应用程序.

                  Which of course is due to the absence of the Outlook application.

                  有什么方法可以只安装一个 DLL 或其他东西以使 OpenSharedItem 方法工作吗?如果可能,我不想安装完整的客户端.

                  Is there any way to install just a DLL or something in order to get the OpenSharedItem method to work? I don't want to have to install the full client if possible.

                  或者,有没有一种方法可以解析 .msg 文件而不需要诸如 Outlook 之类的重要依赖项?

                  Or, is there a way to parse a .msg file without requiring significant dependencies such as Outlook?

                  推荐答案

                  我很久以前保存的一篇 codeplex 文章回答了这个问题

                  This was answered in a codeplex article I have saved from a long time ago

                  文章在这里,有一个名为 OutlookStorage.cs 的文件不需要 Outlook 模型.

                  Article is here, there is a file called OutlookStorage.cs that does not require the outlook model.

                  正如在下面的评论中,现在有一个 nuget 包涵盖了这一点:

                  As in the comments below there is now a nuget package that covers this:

                  这里

                  在评论中为 Simon Green 提供支持.

                  Props to Simon Green in the comments for this.

                  这篇关于阅读 Outlook .msg 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:为什么不鼓励将程序集标记为 ComVisible(true)? 下一篇:从 .NET Windows 服务调用 Shell32.dll

                  相关文章

                    <tfoot id='UPst1'></tfoot>
                    <i id='UPst1'><tr id='UPst1'><dt id='UPst1'><q id='UPst1'><span id='UPst1'><b id='UPst1'><form id='UPst1'><ins id='UPst1'></ins><ul id='UPst1'></ul><sub id='UPst1'></sub></form><legend id='UPst1'></legend><bdo id='UPst1'><pre id='UPst1'><center id='UPst1'></center></pre></bdo></b><th id='UPst1'></th></span></q></dt></tr></i><div id='UPst1'><tfoot id='UPst1'></tfoot><dl id='UPst1'><fieldset id='UPst1'></fieldset></dl></div>

                        <bdo id='UPst1'></bdo><ul id='UPst1'></ul>
                    1. <legend id='UPst1'><style id='UPst1'><dir id='UPst1'><q id='UPst1'></q></dir></style></legend>
                    2. <small id='UPst1'></small><noframes id='UPst1'>