From: AA on 10 Feb 2006 16:58 I?m trying to get the path and name of an attached file in to email message in Outlook using the Clipboard. The idea is ?. IDataObject data = Clipboard.GetDataObject(); String[] myFormatsArray = data.GetFormats(false); // list of all formats when COPY to Clipboard from a file attached to Outlook is: // "FileContents", "FileGroupDescriptor", "RenPrivateFileAttachments", "Text", "UnicodeText" MemoryStream stream = (MemoryStream)data.GetData("FileContents",true); byte [] CopyOrCutFlag = new byte[] { (byte)stream.ReadByte(), 0, 0, 0 }; MemoryStream stream1 = (MemoryStream)data.GetData("FileGroupDescriptor",true); byte [] CopyOrCutFlag1 = new byte[] { (byte)stream.ReadByte(), 0, 0, 0 }; MemoryStream stream2 = (MemoryStream)data.GetData("RenPrivateFileAttachments",true); byte [] CopyOrCutFlag2 = new byte[] { (byte)stream.ReadByte(), 0, 0, 0 }; How can I continue? ?. Is there another way? Thanks. AA
|
Pages: 1 Prev: Process.Start with Username hangs Next: DeflateStream & MemoryStream? |