将分组电子邮件拖放到 C# Winform
我需要能够将分组电子邮件拖放到我的 winform 应用程序中,但我一点运气都没有。
我可以获得这样的文件名,但它只是一个名称,而不是路径。
每次我打电话时
e.Data.GetData("FileContents", true))
or
e.Data.GetData("FileContents", false))
or
e.Data.GetData("FileContents"))
都会返回 null。
此外,GetFormats 返回一些奇怪的东西,简单的 Google 搜索什么也没有返回。 其中一种格式是 WPOF_DBOBJ_DRN
。
如果有人对此有一些见解,将不胜感激。
更新:
只是为了添加更多有关此内容的详细信息,拖放操作中剪贴板上也没有任何内容。 还查看了分组编辑器,我的电脑上甚至没有安装 Word Perfect,而且它绝对不是编辑器。
I have a need to be able to drag and drop a groupwise email to my winform application and am not having any luck at all.
I am able to get a filename as such but it is only a name, not a path.
Every time I call
e.Data.GetData("FileContents", true))
or
e.Data.GetData("FileContents", false))
or
e.Data.GetData("FileContents"))
I get null returned.
Also, the GetFormats returns something strange and a simple Google search returned nothing. One of the formats was WPOF_DBOBJ_DRN
.
If anyone has some insight on this it would be greatly appreciated.
Update:
Just to add a few more details about this, there is also nothing on the clipboard from the drag and drop. Also took a look at the groupwise editor and word perfect isn't even installed on my pc and is most definatly not the editor.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
看一下以下链接(我知道,其中一些是针对 Delphi 的,但您应该明白):
将 GroupWise 中的电子邮件文件附件拖放到 .NET 应用程序
http://www.experts-exchange.com/Programming/Languages/Pascal/Delphi/Q_21198933.html
http://www.experts-exchange。 com/Programming/Languages/Pascal/Delphi/Q_23015275.html
Have a look at the following links (I know, some of them are for Delphi, but you should get the idea):
Drag and drop from an email file attachment in GroupWise to a .NET application
http://www.experts-exchange.com/Programming/Languages/Pascal/Delphi/Q_21198933.html
http://www.experts-exchange.com/Programming/Languages/Pascal/Delphi/Q_23015275.html
我会考虑尝试一下。 我还尝试使用非托管代码将 IStorage 接口实现为 IDataObject 接口,但仍然没有任何运气。 (该界面还用于获取拖放的 Outlook 消息,并且工作正常。)
该格式绝对是我通过调用 e.Data.GetFormats(); 返回的格式之一。
我会看一下该链接。 谢谢
I'll take a look at trying that. I've also tried to implement the IStorage interface into an IDataObject interface using unmanaged code and still aren't having any luck. (The Interface is also used to get Outlook messages that are dragged and dropped and works fine.)
That format is most definatly one of the formats i get back from calling e.Data.GetFormats();
I'll take a look at that link. Thanks
WPOF_DBOBJ_DRN 看起来像 WordPerfect Office 格式 - 数据库对象。 我不明白 DRN 代表什么。 看看是否可以使用 Word 或 WordPerfect(如果有)打开无法读取的文件。 我的猜测是,您正在使用的 GroupWise 设置将 WordPerfect 作为其编辑器。
WPOF_DBOBJ_DRN looks like WordPerfect Office Format - Database Object. I can't figure out what the DRN stands for though. See if you can open the unreadable file with Word, or WordPerfect if you have it. My guess is that the setup of GroupWise that you are using has WordPerfect as its editor.