Skip to Content
0
Jan 08, 2023 at 09:32 PM

Nobody knows how to drag and drop an Email (Outlook) to a Form and save it as an Attachment?

202 Views Last edit Jan 08, 2023 at 10:13 PM 2 rev

Hello Together,

the only " Still open " question that I have and do not know to implement using Di API SDK is the functionallity to drag and drop an Email into a User Form using SDK.

The functionallity is there on SAP B1 in almost every SystemForm which has an Attachment Tab so it is definitly possible.

Has nobody tried to implement this function before?

Here is how to do it on a windows Form but it needs to be done to a SAP Form in a SAP Environment so i am struggeling because of this :

 ??? += new DragEventHandler(trythis); 

private void trythis(Object sender,DragEventArgs e)
        {
            //throw new System.NotImplementedException();
            if (e.Data.GetDataPresent(typeof(System.String)))
            {
                Object item = e.Data.GetData(typeof(System.String));

                // Perform drag-and-drop, depending upon the effect.
                if (e.Effect == DragDropEffects.Copy ||
                    e.Effect == DragDropEffects.Move)
                {
                    // Insert the item.
                    SAPbouiCOM.Framework.Application.SBO_Application.MessageBox("HI");
                }
            }
        }