Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copying to Clipboard from TWebBrowser 1

Status
Not open for further replies.

sjwales

MIS
Jun 24, 2003
61
US
The TWebBrowser component doesn't appear to natively support a Control-C to copy text that appears there into the clipboard.

My application presents some data that users want to select, copy to the clipboard and then paste into Notepad or email or whatever.

I was wondering if someone would have a snippet of code to show me how to do that?

Thanks
Steve

Steve Wales
 
Hi.

Add this in the bottom of your unit

initialization
OleInitialize(nil);

finalization
OleUninitialize;

Also remember to add activeX in your use clause.

cheers,
mha
 
Always great to help.. :)

Thank you for the star.. :)

cheers,
mha
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top