拖动&直接从 Web 应用程序中的 Outlook 删除

Drag amp; Drop directly from Outlook in web app(拖动amp;直接从 Web 应用程序中的 Outlook 删除)
本文介绍了拖动&直接从 Web 应用程序中的 Outlook 删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我知道这个问题与我的问题相同:

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 删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

相关文档推荐

Drag amp; Drop with Protractor by Repeater(拖动amp;通过中继器使用量角器掉落)
Getting the position of the element in a list when it#39;s drag/dropped (ui.sortable)(拖放时获取元素在列表中的位置(ui.sortable))
Detecting HTML5 Drag And Drop support in javascript(在 javascript 中检测 HTML5 拖放支持)
HTML5 drop event doesn#39;t work unless dragover is handled(除非处理了拖动,否则 HTML5 放置事件不起作用)
How to use jQuery#39;s drop event to upload files dragged from the desktop?(如何使用 jQuery 的 drop 事件上传从桌面拖动的文件?)
Drop image into contenteditable in Chrome to the cursor(将图像拖放到 Chrome 中的 contenteditable 到光标处)