問題描述
我知道這個問題與我的問題相同:
I know this question is relating the same problem as mine :
- 上傳失敗時用戶從電子郵件客戶端拖放附件
但我正在尋找一種解決方法來實現將 Outlook 消息放入我的 web 應用程序(目前只有 HTML5/JS 代碼).
but I'm looking for a workaround to achieve a drop from Outlook message into my webapp (currently only HTML5 / JS code).
是否可以使用一些activeX 將消息復制到臨時文件系統文件夾中,然后使用此文件引用?我想知道可行性水平.
Is it possible, with some activeX, to copy the message in a temp filesystem folder and then use this file reference ? I would like to know the faisability level.
另外,我們可以使用 ActiveX 從 Jscript 調用 DLL 是否正確,例如:
Also, is it right that we can call a DLL from Jscript using ActiveX, like :
var obj = new ActiveXObject("ABCDll.testMethod");
var vResult = obj.TestMethod();
alert(vResult);
順便說一句,如果有人對任何文件(包括來自 Outlook 的電子郵件(目前唯一不起作用的東西......)
BTW, if someone has any other suggestion to do a working Drag&Drop component (IE complient) for ANY files, incl. emails from Outlook (the only things that is not working for now...)
非常感謝您的任何意見.
Thanks a lot for any input.
推薦答案
您可以在 C++ 或 Delphi 中編寫瀏覽器幫助程序(用于 IE),從 IE 檢索當前拖放處理程序并安裝自己的處理程序.當從 Outlook 中拖動消息時,您可以將其保存到臨時文件夾,然后調用原始拖放處理程序.處理程序返回后,可以刪除臨時文件.
You can write a browser helper (for IE) in C++ or Delphi that retrieves the current drag/drop handler from IE and installs its own handler. When a message is dragged from Outlook, you can save it to a temp folder, then invoke the original drag/drop handler. After the handler returns, the temporary file can be deleted.
我過去做過這個,效果很好.您可能想查看在 IE 中攔截拖放的 Google Gears 源代碼(不再受支持).
I have done this in the past, and it works fine. You might want to looks at the Google Gears source code (no longer supported) that intercepts drag/drop in IE.
這篇關于拖動&直接從 Web 應用程序中的 Outlook 刪除的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!