Hello,
an Exception "System.Runtime .InteropService s.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.N avigate2(ref source, ref ep, ref ep, ref ep, ref ep);
while (axWebBrowser1. QueryStatusWB(S HDocVw.OLECMDID .OLECMDID_PRINT ) !=
(SHDocVw.OLECMD F.OLECMDF_SUPPO RTED & SHDocVw.OLECMDF .OLECMDF_ENABLE D))
Application.DoE vents();
Console.WriteLi ne("Printing : " + source);
axWebBrowser1.E xecWB(SHDocVw.O LECMDID.OLECMDI D_PRINT,
SHDocVw.OLECMDE XECOPT.OLECMDEX ECOPT_DONTPROMP TUSER, ref ep, ref ep);
--
ZeD -------------- Epita promo 2005
zed@3ie.org ---- icq : 163250811
an Exception "System.Runtime .InteropService s.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.N avigate2(ref source, ref ep, ref ep, ref ep, ref ep);
while (axWebBrowser1. QueryStatusWB(S HDocVw.OLECMDID .OLECMDID_PRINT ) !=
(SHDocVw.OLECMD F.OLECMDF_SUPPO RTED & SHDocVw.OLECMDF .OLECMDF_ENABLE D))
Application.DoE vents();
Console.WriteLi ne("Printing : " + source);
axWebBrowser1.E xecWB(SHDocVw.O LECMDID.OLECMDI D_PRINT,
SHDocVw.OLECMDE XECOPT.OLECMDEX ECOPT_DONTPROMP TUSER, ref ep, ref ep);
--
ZeD -------------- Epita promo 2005
zed@3ie.org ---- icq : 163250811
Comment