By: Quinn Wildman
Abstract: How to resolve the error "Trying to revoke a drop target that has not been registered".
1. TWebBrowser is not yet ready to accept the command. For following may generate this error:
To resolve the problem use QueryStatusWB and wait for it to return OLECMDF_SUPPORTED + OLECMDF_ENABLED. Below is an example that fixes the problem:
while QueryStatusWB( OLECMDID_PRINT) <> OLECMDF_SUPPORTED + OLECMDF_ENABLED do
2. Even though you use QueryStatusWB, Copy and Paste may still fail. Add the following to the end of your unit to resolve the problem:
Download Delphi XE6 now!
Get Free Trial
Webinars on demand!
More social media choices:
Delphi on Google+
@RADTools on Twitter
Server Response from: ETNASC04