1 year ago

#377565

test-img

Neyc

Copying files from VB.NET WinForm app to Outlook in Chrome copies only path and not the file

When I copy file from my vb.net winform app to outlook desktop application as an attachment, it works fine, but when I try to copy the file from winform to outlook opened in chrome, it onlycopies the text of files path and not the file itself. Could there be any restrictions from the browser outlook for copying files? I thought maybe the format of the Clipboard object is the problem since the clipboard object, created from windows desktop includes following formats:

(0) "Shell IDList Array" String

(1) "UsingDefaultDragImage" String

(2) "DragImageBits" String

(3) "DragContext" String

(4) "DragSourceHelperFlags" String

(5) "InShellDragLoop" String

(6) "FileDrop" String

(7) "FileNameW" String

(8) "FileName" String

(9) "FileContents" String

(10) "FileGroupDescriptorW" String

And the clipboard object created from my app includes these formats:

(0) "System.String" String

(1) "UnicodeText" String

(2) "Text" String

(3) "FileGroupDescriptorW" String

(4) "FileContents" String

(5) "Preferred DropEffect" Strings

Thanks for any help.

vb.net

outlook

clipboard

attachment

0 Answers

Your Answer

Accepted video resources