Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat is the RenPrivateItem file format in the .NET framework?
    primarykey
    data
    text
    <p>I was working to allow an Outlook attachment to be drag-n-dropped from the subject line of an email. To do this I needed to handle the file as a RenPrivateItem. Everything works alright but I was hoping somebody could define the "RenPrivateItem" format in the context of .NET, or otherwise. </p> <p>I would like to know why my code works but I could not find any further information on this format via a web search.</p> <p>Also, I am working with Visual Studio 2012 and Outlook 2007.</p> <p>EDIT:</p> <p>I am somewhat unfamiliar with the process of handling the DragDrop but I am guessing that there are only certain types of documents that are supposed to be handled by it. I was given an example of a file that currently works (attachment .pdf contained in email body) and an example that does not (attachment .pdf contained in email subject-line). The working example returns true on the following line and is handled:</p> <pre><code>ElseIf idoData.GetDataPresent(System.Windows.Forms.DataFormats.Rtf, False) Then </code></pre> <p>The example that does not work is not handled by any of the cases visible in the code block below. My task was to figure out why it doesn't work (it is the same file, just attached to the email in a different place). Since I do not understand what the file formats I'm receiving are, with the exception of .rtf, I am finding it difficult to know how to handle the other case:</p> <pre><code>Shared Sub ProcessOutlookDrop(ByVal idoData As Windows.Forms.IDataObject, ByVal iIdReport As Integer, ByVal iIdFileReference As Integer) If idoData.GetDataPresent("RenPrivateFileAttachments") Then byFile = getFiledataArrayFromFileContents(idoData) ElseIf idoData.GetDataPresent("RenPrivateItem") Then ' ADDED BY ME byFile = getFiledataArrayFromFileContents(idoData) ' ADDED BY ME ElseIf idoData.GetDataPresent(System.Windows.Forms.DataFormats.Rtf, False) Then byFile = getFiledataArrayFromFileContents(idoData) ElseIf idoData.GetDataPresent(System.Windows.Forms.DataFormats.Text, False) Then byFile = getMessagedataArrayFromOutlook(idoData) End If </code></pre> <p>For the working example (.pdf attachment in the body) I am getting formats of: Woozle, Object Descriptor, Rich Text Format, HtmlFormat, EnhancedMetafile, MetaFilePict, DeviceIndependentBitmap, System.Drawing.Bitmap, Bitmap, Embedded Object, FileGroupDescriptor, FileContents</p> <p>For the broken example (.pdf attachment in the subject line) I am getting formats of: FileGroupDescriptorW, FileGroupDescriptor, RenPrivateItem, FileContents</p> <p>In addition to my initial question, why are these files handled so differently?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload