CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Copy Paste from Clipboard Problem

by Wissem_B » 15 Apr 2015 11:48

Hi all,

with a Button, i want to paste data from Clipboard (Copied from Excel) to IwcgjqMemoEx, by debugging time work fine , but without debugging it didn't work!

please try this Example Code
uses , ClipBrd;
procedure Tfr_testFrame.IWCGJQButton3JQButtonOptionsClick(Sender: TObject;
AParams: TStringList);
begin
Clipboard.Open;
IWCGJQMemoEx1.Text:= Clipboard.AsText;
Clipboard.Close;
end;


Thank You
Wissem_B
 
Posts: 32
Joined: 07 Aug 2014 07:36

by Wissem_B » 17 Apr 2015 11:17

hi,
please Help! have you an idea to solve this problem?
Thank You

Best Regards
Wissem_B
 
Posts: 32
Joined: 07 Aug 2014 07:36

by Jorge Sousa » 17 Apr 2015 11:24

Hi

We've no idea, and we don't see how Clipboard.AsText has anything to do with our components.

What's the exact value of Clipboard.AsText in your case?
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by Wissem_B » 20 Apr 2015 09:16

Hi

thank you for your reply,

1-
.We've no idea, and we don't see how Clipboard.AsText has anything to do with our components.

==> to save data from Excel to Database, i used Clipboard Delphi Function to show Data at first in IWCGJQMemoEx but in vain :roll: :roll:

What's the exact value of Clipboard.AsText in your case?


==>Example: 1 40225 40225 1335 DÜSSELDORF 24 24


i hope you can help me
Best regards
Wissem_B
 
Posts: 32
Joined: 07 Aug 2014 07:36

by Jorge Sousa » 20 Apr 2015 14:36

Hello

You've to realize that when you are using the clipboard in the SERVER, not in the client.

This will work ONLY if the server is the same machine where the browser.

You cannot use clipboard functions, like Clipboard.Open and Clipboard.AsText, you would have to do it using javascript, for instance:
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58


Return to General

Who is online

Users browsing this forum: No registered users and 12 guests

Contact Us.