How to use Control Drag N Drop Event?

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
defcon8808
User
Posts: 64
Joined: Sat Dec 13, 2014 6:59 am

How to use Control Drag N Drop Event?

Post by defcon8808 »

I can't find to look PDF File Drag N Drop Event In Online Document.

How to use Control Drag N Drop Event?
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: How to use Control Drag N Drop Event?

Post by Sasha - Tracker Dev Team »

Hello defcon8808,

I don't quite get it what you want to do. Can you please add more details to your problem so that I can help with you with the solution?

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
defcon8808
User
Posts: 64
Joined: Sat Dec 13, 2014 6:59 am

Re: How to use Control Drag N Drop Event?

Post by defcon8808 »

i want to do Drag And Drop to PDF File on PDF-XChange Editor Control.

i reference below URL.
https://sdkhelp.pdf-xchange.com/view/PXV:PXV_Events

i can't find event about Drag And Drop.

Do you want to more description?
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: How to use Control Drag N Drop Event?

Post by Sasha - Tracker Dev Team »

Basically, you want to implement custom Drag&Drop on the PDF Editor's Control?
Or you just need to extract some data or change something when the drop happens?
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
defcon8808
User
Posts: 64
Joined: Sat Dec 13, 2014 6:59 am

Re: How to use Control Drag N Drop Event?

Post by defcon8808 »

i need to extract PDF File Path data when drag and drop on PDF Editor's control.

exactly. i want to open to file when drag and drop like PDF Editor's of EndUser Version.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: How to use Control Drag N Drop Event?

Post by Sasha - Tracker Dev Team »

You can use the e.document.initialized or e.document.viewingStarted event to get document's information out of it. But that event is sent when the document is opened by D&D or by the open dialog or by converting it from other files. So basically you can't judge whether the document was exactly opened by D&D by these events. If this is OK then I can give you the sample on how to get document from these events.
But if you need to exactly read only D&D'd document's data - then you'll need to implement custom D&D.

HTH,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
defcon8808
User
Posts: 64
Joined: Sat Dec 13, 2014 6:59 am

Re: How to use Control Drag N Drop Event?

Post by defcon8808 »

i understood.

All i need is custom D&D.


Thanks.
defcon8808
User
Posts: 64
Joined: Sat Dec 13, 2014 6:59 am

Re: How to use Control Drag N Drop Event?

Post by defcon8808 »

i can't understood.. sorry.

I do not speak English well..

I want to open a file when D & D. ==> Answer is "Custom D&D". right?
Last edited by defcon8808 on Thu Feb 25, 2016 11:12 am, edited 1 time in total.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: How to use Control Drag N Drop Event?

Post by Sasha - Tracker Dev Team »

Then check this post:
https://forum.pdf-xchange.com/ ... 688#p96688

HTH,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
defcon8808
User
Posts: 64
Joined: Sat Dec 13, 2014 6:59 am

Re: How to use Control Drag N Drop Event?

Post by defcon8808 »

Sasha - Tracker Dev Team wrote:You can use the e.document.initialized or e.document.viewingStarted event to get document's information out of it. But that event is sent when the document is opened by D&D or by the open dialog or by converting it from other files. So basically you can't judge whether the document was exactly opened by D&D by these events. If this is OK then I can give you the sample on how to get document from these events.
But if you need to exactly read only D&D'd document's data - then you'll need to implement custom D&D.

HTH,
Alex
i can't understood.. sorry.

I do not speak English well..

I want to open a file when D & D. ==> Answer is "Custom D&D". right?
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: How to use Control Drag N Drop Event?

Post by Sasha - Tracker Dev Team »

Hello defcon8808,

Yes, it's custom D&D.
And as I previously said, the code for it is already described here:
https://forum.pdf-xchange.com/ ... 688#p96688

HTH,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply