Ticket T182151
Visible to All Users
Duplicate

Drag&Drop an outlook item in FILEDATA listview

created 10 years ago

Hi DevExpress team,

i want to enable the FILEDATA Listview for importing dragged outlook items. Refering to the 7 year old ticket under https://www.devexpress.com/Support/Center/Question/Details/Q102850 :

In the meantime is there any easier approach for a solution but to recompile the FileAttachmentListViewController (which prohibit the easy usage of further DevExpress versions)? Isnt it possible to alter the behaviour of the DragOver event and enable optional other formats "out of the box"?

Thanks for your oppinion, kind regards
Wolf

Answers approved by DevExpress Support

created 10 years ago (modified 10 years ago)

Hello Wolf,

Please pardon our delayed response. These days we have been extremely overloaded with support queries due to the upcoming v14.2 release.
I have researched this situation and see that the solution below is the easiest at the moment:

  1. Copy the content of the …\DevExpress.ExpressApp.Modules\DevExpress.ExpressApp.FileAttachment.Win\FileAttachmentListViewController.cs file into your project.
  2. Change the default namespace and class name to yours.
  3. Add the following method into the copied class:
C#
protected override void OnFrameAssigned() { base.OnFrameAssigned(); Frame.GetController<DevExpress.ExpressApp.FileAttachments.Win.FileAttachmentListViewController>().Active["any text"] = false; }
  1. Modify its source code as you require to support drag-and-drop operations from Outlook messages. The latter part is unrelated to DevExpress, and you may want to look for standard solutions on sites like StackOverFlow, CodeProject, MSDN, etc.

This class does not contain a lot of code and uses only public and documented APIs. It should not be difficult to maintain this class.

    Comments (2)

      Hi Dennis,
      no reason to appologize the delay, your support is unrivaled! Thanks for your very usefull support, good luck with the 14.2 release
      Wolf

      Dennis Garavsky (DevExpress) 10 years ago

        Thanks for your understanding, Wolf. Have you tried the new XAF 14.2 features already? If you already had your hands on the new bits, it would be great to hear what you like and what not, of course if you have some time.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.