Welcome! Log In Create A New Profile

Advanced

Copy and paste from a PDF to an edit control

Posted by Javier.pcs.crosspost 
Javier.pcs.crosspost
Copy and paste from a PDF to an edit control
September 24, 2008 04:18PM
Well, that. How can select from a PDF document loaded into an image control, for example the name of a customer's bill, and paste it into an edit control.

Message forwarded from pcsoft.us.windev
Georgio
Re: Copy and paste from a PDF to an edit control
September 25, 2008 06:03PM
If I'm understanding you correctly, if you have the pdf document already
loaded into an image, it should be as easy as:

sPDFLocation is string = Photo
nPDFResult is int = ToClipboard(sPDFLocation)
	IF NOT nPDFResult THEN
		// no image available
		NextTitle("Unable To Copy")
		Error("The system could not access the clipboard.  Copy and Paste Not Allowed. ")
	END
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: