Print Page | Close Window

SOLVED: Drag & Drop from Windows Explorer

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=11345
Printed Date: 20 July 2025 at 7:18am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SOLVED: Drag & Drop from Windows Explorer
Posted By: McKloony
Subject: SOLVED: Drag & Drop from Windows Explorer
Date Posted: 08 July 2008 at 12:01pm
In keeping with the contribution of https://forum.codejock.com/forum_posts.asp?TID=10986 - 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



Replies:
Posted By: Peter59
Date 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 - 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 - 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



Posted By: Aaron
Date 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....


Posted By: McKloony
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net