有办法,必须下载插件了!我给你一个!
看看
http://lucky.myrice.com/print2.htm
需要IE5.0 sp1以上支持!
什么页眉、页脚等都可以进行设置,具体参见公司原址:
http://www.meadroid.com
看看
http://lucky.myrice.com/print2.htm
需要IE5.0 sp1以上支持!
什么页眉、页脚等都可以进行设置,具体参见公司原址:
http://www.meadroid.com
<p><input type="button" value="Print the page"
onclick="factory.printing.Print(false)">
<input type="button" value="Page Setup..."
onclick="factory.printing.PageSetup()">
<input type="button" value="Print Preview..."
onclick="factory.printing.Preview()">
http://lucky.myrice.com/ScriptX.exe
window.open打开的窗口固然没有提示出现,但第一个窗口怎么用window.open 建立,
我想寻找最彻底的方法,什么都不用,就用IE本身!!!!!
不用插件,实现预览只能是IE5.5以上:<object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
</object>
<input type="button" name="Button" value="打印预览" onClick="document.all.WebBrowser.ExecWB(7,1)">打印不出现窗口不可能实现关闭:
<a href="#" onclick="document.all.WebBrowser.ExecWB(45,1)">关闭窗口</a>
<object id="WebBrowser" width=10 height=10 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object>
<input type="button" name="Button" value="关闭窗口" onClick="document.all.WebBrowser.ExecWB(45,1)">
<object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object>
可以看看这个!
http://lucky.myrice.com/print.htm
http://lucky.myrice.com/print2.htm