ie5.0下的:
<OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0>
</OBJECT>
<script>
document.all.WebBrowser.ExecWB(6,6);
</script>
打印不对, 好像找不到控件, 如何解决?
<OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0>
</OBJECT>
<script>
document.all.WebBrowser.ExecWB(6,6);
</script>
打印不对, 好像找不到控件, 如何解决?
不如在脚本中加个button的onclick事件,不就得了
</OBJECT><input type=button value=打印.. onclick="document.all.WebBrowser.ExecWB(6,6)">在IE中把activex控件启用,不然是不能打印的! ie----选项----安全
classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
codebase="ScriptX.cab#Version=6,1,432,1">
</object><SCRIPT Language="JavaScript">
<!--//
factory.printing.Print(true);
//-->
</SCRIPT>
2. mrshelly(Shelly), ScriptX, factory.printing.Print(true);在我这里还是弹出打印提示框.不是直接打印. 我的配置是win2000+ie6.0
3. xinyunyishui(心云意水) ,ScriptX.cab#服务器有这个包才行.
http://community.csdn.net/Expert/topic/3472/3472337.xml?temp=.1701624
??
记不清了。就是这样实现的