在新页面里用ActiveX控制下。
<tr>
<td colspan="12">
<style media=print>
.Noprint{display:none;}
.PageNext{page-break-after: always;}
</style> <center class="Noprint" >
<p>
<OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0>
</OBJECT>
<input Class="main_lookup_button" type=button value=打印 onclick=document.all.WebBrowser.ExecWB(6,6)>
<input Class="main_lookup_button" type=button value=页面设置 onclick=document.all.WebBrowser.ExecWB(8,1)>
<input Class="main_lookup_button" type=button value=打印预览 onclick=document.all.WebBrowser.ExecWB(7,1)>
</p>
</center>
</td>
</tr>
<tr>
<td colspan="12">
<style media=print>
.Noprint{display:none;}
.PageNext{page-break-after: always;}
</style> <center class="Noprint" >
<p>
<OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0>
</OBJECT>
<input Class="main_lookup_button" type=button value=打印 onclick=document.all.WebBrowser.ExecWB(6,6)>
<input Class="main_lookup_button" type=button value=页面设置 onclick=document.all.WebBrowser.ExecWB(8,1)>
<input Class="main_lookup_button" type=button value=打印预览 onclick=document.all.WebBrowser.ExecWB(7,1)>
</p>
</center>
</td>
</tr>
‘Suntears() ’的方法是在票据页面里加入‘activex设置’吧,这样的话,新打开一个页面又要做设置?
如何做到设置一次可以打印一组(几张不同的)页面(每张页面都是一个新窗口)呢