Solved

WebBrowser Component and Copy/Paste

Posted on 2004-04-25
6
324 Views
Last Modified: 2010-04-05
Hi there,

I've placed a WebBrowser component on my form and let's say an editbox as well. When I select a text from a page loaded on my WebBrowser component and copy the selected text, I cannot paste it in to the EditBox. Is there any way for that?
0
Comment
Question by:bilgehanyildirim
  • 4
  • 2
6 Comments
 
LVL 11

Expert Comment

by:shaneholmes
ID: 10914328

I tried this, it works fine....

Right click on Browser, select copy to copy selected text to clipboard.
Right click on Edit , select paste to past selected text from clipboard to Edit Box

You maay need to do the folowing:

you could try adding the following lines to the bottom of your main unit

initialization
  OleInitialize(nil);

finalization
  OleUninitialize;


http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_10551601.html?query=TWebbrowser+Selected&searchType=topic


Shane
0
 

Author Comment

by:bilgehanyildirim
ID: 10914340
I couldn't quite understand what you mean with "you could try adding the following lines to the bottom of your main unit". Coul you please make it a little bit clear?

Thanks in advance.
0
 
LVL 11

Accepted Solution

by:
shaneholmes earned 50 total points
ID: 10914824
This is a stripped doen version with out the form declaration

you should get the idea though...

SHane

unit UntMain;

interface

implementation

initialization
  OleInitialize(nil);

finalization
  OleUninitialize;

end.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:bilgehanyildirim
ID: 10915818
Thanx!
0
 

Author Comment

by:bilgehanyildirim
ID: 10917495
I tried what you said but i came up with an error

"Undeclared Identifier : ' OleInitialize'
"Undeclared Identifier : ' OleUnInitialize'
0
 

Author Comment

by:bilgehanyildirim
ID: 10917527
Solved.. Added Activex to the USES.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
loading dll from external path 1 211
Send message from delphi to whatsapp, is it possible? 3 1,160
Dev Express grid collapse 2 39
Create a path if not exists 7 69
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now