久久久久久久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 應用程序

        Drag#39;n#39;drop one or more mails from Outlook to C# WPF application(將一封或多封郵件從 Outlook 拖放到 C# WPF 應用程序)
          <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 應用程序的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在開發(fā)一個在 .Net 3.5 Sp1 上使用 C# 用 WPF 編寫的 Windows 客戶端,其要求是客戶端收到的電子郵件中的數(shù)據(jù)可以存儲在數(shù)據(jù)庫中.現(xiàn)在最簡單的處理方法是復制和粘貼文本、主題、聯(liá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.

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

                  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.

                  然而,在谷歌上搜索這方面的信息幾個小時似乎表明關于這個看似基本的任務的信息令人震驚地缺乏.我認為這樣的事情在很多不同的環(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)了一個很棒的 文章 應該完全符合您的需要.

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

                  更新

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

                  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 構造函數(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.

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

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

                  相關文檔推薦

                  Ignore whitespace while reading XML(讀取 XML 時忽略空格)
                  XML to LINQ with Checking Null Elements(帶有檢查空元素的 XML 到 LINQ)
                  Reading XML with unclosed tags in C#(在 C# 中讀取帶有未閉合標簽的 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>

                            主站蜘蛛池模板: 免费亚洲视频 | 伊人久久麻豆 | 热久久久 | 亚洲 成人 在线 | 国产精品成人一区二区三区夜夜夜 | 一区二区不卡 | 国产一区视频在线 | 亚洲自拍偷拍欧美 | 久久久久久免费精品一区二区三区 | 日韩在线精品强乱中文字幕 | 1204国产成人精品视频 | 一区二区三区视频免费看 | 羞羞网站在线观看 | 日韩av在线一区 | 中文一区二区 | 麻豆va | 北条麻妃视频在线观看 | 亚洲国产欧美日韩 | 97色在线视频 | 国产精品a免费一区久久电影 | 国产亚洲欧美另类一区二区三区 | 久久精品亚洲 | 在线综合视频 | 激情影院久久 | 久久国产精品视频 | 国产一区二区成人 | 欧美精品一区二区免费视频 | 色综合一区二区三区 | 亚洲一区二区av | 羞羞视频在线观免费观看 | 日日操夜夜操天天操 | 99久久免费精品视频 | 色天堂影院 | 97日韩精品 | 女人牲交视频一级毛片 | 久久精品免费一区二区三 | 中文区中文字幕免费看 | 国产精品1区2区3区 一区中文字幕 | 日韩视频一区二区 | 中文字幕欧美一区 | 毛片一级片 |