axWebBrowser

  • Thread starter Thread starter antoine Veret
  • Start date Start date
A

antoine Veret

Hello,
an Exception "System.Runtime.InteropServices.COMException
(0x80040100): Trying to revoke a drop target that has not been registered"
throw when i execute this code, i dont understand why, althought i test with
the "while"

object ep = null;
axWebBrowser1.Navigate2(ref source, ref ep, ref ep, ref ep, ref ep);

while (axWebBrowser1.QueryStatusWB(SHDocVw.OLECMDID.OLECMDID_PRINT) !=
(SHDocVw.OLECMDF.OLECMDF_SUPPORTED & SHDocVw.OLECMDF.OLECMDF_ENABLED))
Application.DoEvents();

Console.WriteLine("Printing : " + source);
axWebBrowser1.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT,
SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER, ref ep, ref ep);
 
I've never had this problem with the WebBrowser control. Have you tried
removing all references to it, and reinserting them? Worth a try.


Chris
 
Back
Top