Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - SOLVED: Drag & Drop from Windows Explorer
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SOLVED: Drag & Drop from Windows Explorer

 Post Reply Post Reply
Author
Message
McKloony View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 January 2007
Location: Germany
Status: Offline
Points: 340
Post Options Post Options   Thanks (0) Thanks(0)   Quote McKloony Quote  Post ReplyReply Direct Link To This Post Topic: SOLVED: Drag & Drop from Windows Explorer
    Posted: 08 July 2008 at 12:01pm
In keeping with the contribution of https://forum.codejock.com/forum_posts.asp?TID=10986 (Point 4.) I'm looking for a sample, how to drag a file from the windows explorer into a report control. The only thing i want to do is, to fire the drop event and to get the fullpath of the file then.
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6
Back to Top
Peter59 View Drop Down
Groupie
Groupie


Joined: 19 July 2007
Status: Offline
Points: 61
Post Options Post Options   Thanks (0) Thanks(0)   Quote Peter59 Quote  Post ReplyReply Direct Link To This Post Posted: 09 July 2008 at 6:42am
Hi Marcus,

it's not a miracle to get your problem solved:

- set property OLEDropMode to xtpOLEDropManual
- call EnableDragDrop method
- handle OLEDragDrop event to get the dropped files (filenames)

See attached sample uploads/20080709_064423_DropFilesToRepo.zip.

If your issue is solved, please add SOLVED in your Topic description and have a look at post http://forum.codejock.com/forum_posts.asp?TID=11225

@Aaron: Do you think this sample is a candidate for the Code Snippets forum? Let me know...

Product: Xtreme SuitePro (ActiveX) version 11.2.2/12.0.1
Platform: Windows 2K
Language: Visual Basic 6.0 SP6

Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 09 July 2008 at 7:11am
Peter,
 
Now we're getting somewhere
Nice solution for Marcus as well.
 
btw you can leave the @ before Aaron, its my real name
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....
Back to Top
McKloony View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 January 2007
Location: Germany
Status: Offline
Points: 340
Post Options Post Options   Thanks (0) Thanks(0)   Quote McKloony Quote  Post ReplyReply Direct Link To This Post Posted: 09 July 2008 at 8:44am
Thank you, it works great!
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.049 seconds.