axWebBrowser

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • antoine Veret

    #1

    axWebBrowser

    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


  • Chris LaJoie

    #2
    Re: axWebBrowser

    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

    "antoine Veret" <veret_a@3ie.or g> wrote in message
    news:%23pHDNdFV DHA.1744@TK2MSF TNGP12.phx.gbl. ..[color=blue]
    > 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[/color]
    with[color=blue]
    > 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
    >
    >[/color]


    Comment

    Working...