Hi all,
Is there information or an example available how to drag/drop an email from outlook into a ultracontrol?
The first challenge is to determine the type using Progress.Util.TypeHelper:GetType ...
METHOD PRIVATE VOID panel1_DragDrop( INPUT sender AS System.Object, INPUT e AS System.Windows.Forms.DragEventArgs ):
IF e:Data:GetDataPresent (Progress.Util.TypeHelper:GetType("WHAT-TYPE-IS-THIS??")) THEN DO:
END.
MESSAGE "Event dragdrop" VIEW-AS ALERT-BOX.
RETURN.
END METHOD.
Any information would be appreciated!
Groeten
Peter
IF e:Data:GetDataPresent (Progress.Util.TypeHelper:GetType("WHAT-
TYPE-IS-THIS??")) THEN DO:
>
You could do
MESSAGE e:Data:GetFormats()
to see what the supported formats/types are. Via http://msdn.microsoft.com/en-us/library/1745023c.aspx
-- peter
Any information would be appreciated!
Drag and Drop form Outlook is really weird. To know that data comes from Outlook, the most reliable way seems to be
IF e:Data:GetDataPresent ("RenPrivateMessages") THEN
Then you can basically get the plain text email (CSV values of sender, subject, text using the Text or UnicodeText Format) or hook up to Outlook using Automation (COM-Interop or Active X) to query the current email object, contact, appointment, etc..
I'm just writing something together these days for my PUG Challenge Americas presentation... Will have the sample on our blog around the time of the PUG Challenge Americas.