久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <legend id='ZzghQ'><style id='ZzghQ'><dir id='ZzghQ'><q id='ZzghQ'></q></dir></style></legend>

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

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

        將一封或多封郵件從 Outlook 拖放到 C# WPF 應(yīng)用程序

        Drag#39;n#39;drop one or more mails from Outlook to C# WPF application(將一封或多封郵件從 Outlook 拖放到 C# WPF 應(yīng)用程序)
          <bdo id='0mRQ4'></bdo><ul id='0mRQ4'></ul>

          <legend id='0mRQ4'><style id='0mRQ4'><dir id='0mRQ4'><q id='0mRQ4'></q></dir></style></legend>

            <tbody id='0mRQ4'></tbody>
        • <i id='0mRQ4'><tr id='0mRQ4'><dt id='0mRQ4'><q id='0mRQ4'><span id='0mRQ4'><b id='0mRQ4'><form id='0mRQ4'><ins id='0mRQ4'></ins><ul id='0mRQ4'></ul><sub id='0mRQ4'></sub></form><legend id='0mRQ4'></legend><bdo id='0mRQ4'><pre id='0mRQ4'><center id='0mRQ4'></center></pre></bdo></b><th id='0mRQ4'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='0mRQ4'><tfoot id='0mRQ4'></tfoot><dl id='0mRQ4'><fieldset id='0mRQ4'></fieldset></dl></div>

              <small id='0mRQ4'></small><noframes id='0mRQ4'>

            • <tfoot id='0mRQ4'></tfoot>

                  本文介紹了將一封或多封郵件從 Outlook 拖放到 C# WPF 應(yīng)用程序的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我正在開發(fā)一個在 .Net 3.5 Sp1 上使用 C# 用 WPF 編寫的 Windows 客戶端,其要求是客戶端收到的電子郵件中的數(shù)據(jù)可以存儲在數(shù)據(jù)庫中.現(xiàn)在最簡單的處理方法是復(fù)制和粘貼文本、主題、聯(lián)系信息和手動接收到的時間,使用導(dǎo)致關(guān)節(jié)炎的量 ctrl-c/ctrl-v.

                  I'm working on a windows client written in WPF with C# on .Net 3.5 Sp1, where a requirement is that data from emails received by clients can be stored in the database. Right now the easiest way to handle this is to copy and paste the text, subject, contact information and time received manually using an arthritis-inducing amount of ctrl-c/ctrl-v.

                  我認(rèn)為處理此問題的一種簡單方法是允許用戶將一封或多封電子郵件從 Outlook(它們目前都使用 Outlook 2007)拖到窗口中,允許我的應(yīng)用程序提取必要的信息并發(fā)送它到后端系統(tǒng)進(jìn)行存儲.

                  I thought that a simple way to handle this would be to allow the user to drag one or more emails from Outlook (they are all using Outlook 2007 currently) into the window, allowing my app to extract the necessary information and send it to the backend system for storage.

                  然而,在谷歌上搜索這方面的信息幾個小時似乎表明關(guān)于這個看似基本的任務(wù)的信息令人震驚地缺乏.我認(rèn)為這樣的事情在很多不同的環(huán)境中都會很有用,但到目前為止我所能找到的只是半生不熟的非解決方案.

                  However, a few hours googling for information on this seem to indicate a shocking lack of information about this seemingly basic task. I would think that something like this would be useful in a lot of different settings, but all I've been able to find so far have been half-baked non-solutions.

                  有人對如何做到這一點有任何建議嗎?因為我只是要閱讀郵件而不是發(fā)送任何東西或做任何邪惡的事情,所以最好有一個不涉及討厭的安全彈出窗口的解決方案,但任何事情都勝過根本無法做到這一點.

                  Does anyone have any advice on how to do this? Since I am just going to read the mails and not send anything out or do anything evil, it would be nice with a solution that didn't involve the hated security pop ups, but anything beats not being able to do it at all.

                  基本上,如果我能獲得從 Outlook 中選擇、拖放的所有郵件項目的列表,我將能夠自己處理其余的事情!

                  Basically, if I could get a list of all the mail items that were selected, dragged and dropped from Outlook, I will be able to handle the rest myself!

                  謝謝!

                  符文

                  推薦答案

                  我發(fā)現(xiàn)了一個很棒的 文章 應(yīng)該完全符合您的需要.

                  I found a great article that should do exactly what you need to.

                  更新

                  稍作調(diào)整,我就可以讓那篇文章中的代碼在 WPF 中工作,以下是您需要進(jìn)行的更改.

                  I was able to get the code in that article working in WPF with a little tweaking, below are the changes you need to make.

                  將所有引用從 System.Windows.Forms.IDataObject 更改為 System.Windows.IDataObject

                  Change all references from System.Windows.Forms.IDataObject to System.Windows.IDataObject

                  在 OutlookDataObject 構(gòu)造函數(shù)中,更改

                  In the OutlookDataObject constructor, change

                  FieldInfo innerDataField = this.underlyingDataObject.GetType().GetField("innerData", BindingFlags.NonPublic | BindingFlags.Instance);
                  

                  FieldInfo innerDataField = this.underlyingDataObject.GetType().GetField("_innerData", BindingFlags.NonPublic | BindingFlags.Instance);
                  

                  將所有 DataFormats.GetFormat 調(diào)用更改為 DataFormats.GetDataFormat

                  Change all DataFormats.GetFormat calls to DataFormats.GetDataFormat

                  public void SetData(string format, bool autoConvert, object data)
                  {
                      this.underlyingDataObject.SetData(format, autoConvert, data);
                  }
                  

                  public void SetData(string format, object data, bool autoConvert)
                  {
                      this.underlyingDataObject.SetData(format, data, autoConvert);
                  }
                  

                  通過這些更改,我能夠像文章那樣將消息保存到文件中.抱歉格式化,但編號/項目符號列表不適用于代碼片段.

                  With those changes, I was able to get it to save the messages to files as the article did. Sorry for the formatting, but numbered/bulleted lists don't work well with code snippets.

                  這篇關(guān)于將一封或多封郵件從 Outlook 拖放到 C# WPF 應(yīng)用程序的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  Ignore whitespace while reading XML(讀取 XML 時忽略空格)
                  XML to LINQ with Checking Null Elements(帶有檢查空元素的 XML 到 LINQ)
                  Reading XML with unclosed tags in C#(在 C# 中讀取帶有未閉合標(biāo)簽的 XML)
                  Parsing tables, cells with Html agility in C#(在 C# 中使用 Html 敏捷性解析表格、單元格)
                  delete element from xml using LINQ(使用 LINQ 從 xml 中刪除元素)
                  Parse malformed XML(解析格式錯誤的 XML)

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

                        <tbody id='MpBuc'></tbody>
                      <legend id='MpBuc'><style id='MpBuc'><dir id='MpBuc'><q id='MpBuc'></q></dir></style></legend>
                          • <bdo id='MpBuc'></bdo><ul id='MpBuc'></ul>
                            <i id='MpBuc'><tr id='MpBuc'><dt id='MpBuc'><q id='MpBuc'><span id='MpBuc'><b id='MpBuc'><form id='MpBuc'><ins id='MpBuc'></ins><ul id='MpBuc'></ul><sub id='MpBuc'></sub></form><legend id='MpBuc'></legend><bdo id='MpBuc'><pre id='MpBuc'><center id='MpBuc'></center></pre></bdo></b><th id='MpBuc'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='MpBuc'><tfoot id='MpBuc'></tfoot><dl id='MpBuc'><fieldset id='MpBuc'></fieldset></dl></div>
                          • <tfoot id='MpBuc'></tfoot>

                            主站蜘蛛池模板: 精品蜜桃一区二区三区 | 一级片在线视频 | av福利在线 | 97av在线视频 | 黄色a网站 | 国产欧美一区二区精品性色超碰 | 国产第二区 | 少妇av在线| 日本天堂在线 | 日本免费黄色 | 性高潮久久久久久久 | 日本乱子伦 | 亚洲一区二区欧美 | 日韩精品一区二区视频 | 欧美一区二区在线播放 | 美女免费视频网站 | 久久久久久免费毛片精品 | 国产精品久久久久久久 | 青青青草视频在线观看 | 日韩欧美视频一区 | 国产一区2区 | 黄色一级片黄色一级片 | 久久久久女教师免费一区 | 成人免费看片在线观看 | 中文字幕中文字幕 | 国产日韩精品一区二区 | 在线免费av网站 | 一级毛片黄色 | 国产精品视频久久 | 久久精品久久久久久久 | 国精产品99永久一区一区 | 天天噜 | 成人欧美一区二区三区黑人孕妇 | 久久久精品免费 | 中文字幕黄色片 | 日本色视频 | 黄免费视频 | 国产在线视频一区二区 | 一色桃子av | 久青草视频 | 国产区在线观看 |