调用IE控件的ExecWB方法.System.Object p1 = null;System.Object p2 = null;this.axWebBrowser1.ExecWB(SHDocVw.OLECMDID.OLECMDID_SAVEAS,SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DODEFAULT,ref p1,ref p2);

解决方案 »

  1.   

    <body oncontextmenu="savefile()">web端的javascript脚本<script>
    function savefile()
    {
    document.execCommand("Saveas", true, "c:\\111.htm");
    }
    </script>
    还有一个方法你试试
    <OBJECT id="WebBrowser" height="0" width="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" VIEWASTEXT></OBJECT>function savefile()
    {
    WebBrowser.ExecWB(4, 0);
    }