PxPlus User Forum

Main Board => Discussions => Nomads => Topic started by: Jeffrey Ferreira on July 10, 2024, 11:07:48 AM

Title: Drag and Drop a File
Post by: Jeffrey Ferreira on July 10, 2024, 11:07:48 AM
this is probably totally pie in the sky...
is there any way in pxplus that i can drop a file on to something say like from Email Outlook on to a control and get access to that file in some way.
what i'm trying to do is associate a pdf with an invoice or quote.
Title: Re: Drag and Drop a File
Post by: Mike King on July 10, 2024, 01:17:48 PM
Use the DROP FILE directive.

See External File Droping in https://manual.pvxplus.com/page/directives/drop_on.htm
Title: Re: Drag and Drop a File
Post by: Jeffrey Ferreira on July 10, 2024, 02:47:26 PM
thank you Mike - i will give it a try.
Title: Re: Drag and Drop a File
Post by: Mike King on July 10, 2024, 02:58:36 PM
If you want to drop files from Outlook attachments they first have to be dropped into physical files in a directory.

What I have done in the past is create temporary directories where I have the user drag whatever they want.  I display the temp directory using the windows File.Explorer Com object.  It will accept just anything and convert them to files.  Simply create a dummy directory then point the file.explorer Com object to it. 
Title: Re: Drag and Drop a File
Post by: Jeffrey Ferreira on July 16, 2024, 04:23:32 PM
Hi Mike - thank you. this worked for me.
Title: Re: Drag and Drop a File
Post by: Cedric on August 25, 2025, 01:23:26 PM
I know this is an old post, but perhaps you can help...  Is the external file dragging suppose to work in a WindX environment?

It works just fine when ran locally, but it's not generating an event under WindX for some reason.  Am I missing something?