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 文件

        Read Outlook .msg File(阅读 Outlook .msg 文件)
          <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 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Performance overhead of using attributes in .NET(在 .NET 中使用属性的性能开销)
                  Accessing attribute info from DTE(从 DTE 访问属性信息)
                  c# Hide a property in datagridview with datasource(c#使用数据源隐藏datagridview中的属性)
                  Extract Display name and description Attribute from within a HTML helper(从 HTML 帮助器中提取显示名称和描述属性)
                  C# Attributes and their uses(C# 属性及其用途)
                  C# - Getting all enums value by attribute(C# - 按属性获取所有枚举值)

                    <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>

                      <tbody id='UPst1'></tbody>

                          <bdo id='UPst1'></bdo><ul id='UPst1'></ul>
                        • <legend id='UPst1'><style id='UPst1'><dir id='UPst1'><q id='UPst1'></q></dir></style></legend>
                        • <small id='UPst1'></small><noframes id='UPst1'>