<script language='javascript'>fp=window.open('','','height=800,width=600'); 
fp.document.write('<object id=factory viewastext  style=display:none  classid=clsid:1663ed61-23eb-11d2-b92f-008048fdd814></object> '); 
fp.document.write('<style media=print>'); 
fp.document.write('.Noprint{display:none;}'); 
fp.document.write('.PageNext{page-break-after: always;}'); 
fp.document.write('</style>'); 
fp.document.write('<body>'); 
fp.document.write('<script defer>');fp.document.write('factory.printing.header = "This is MeadCo";');fp.document.write('factory.printing.footer = "Advanced Printing by ScriptX";');fp.document.write('factory.printing.leftMargin = 1.0;');fp.document.write('factory.printing.topMargin = 1.0;');fp.document.write('factory.printing.rightMargin = 1.0;');fp.document.write('factory.printing.bottomMargin = 1.0;');fp.document.write('factory.printing.Print(false);');fp.document.write('<'+'/script>');fp.document.write('<table height=500><tr><td></td></tr></table>');
fp.document.write('金额:50.00<br>'); 
fp.document.write('<br>编号:20060423001'); 
fp.document.write('</body>'); 
fp.location.reload();
fp.close(); 
</script>这里面有个打印控件,大家应该熟悉,我在本地装过了,所以没有加载code(加了也一样)
第一次(加载)直接打印两份文档
第二次(刷新)打印一份文档,一次页面设置提示,一次打印机选择提示
第三次(刷新)什么也不打!
是不是控件有问题,我的系统是XP SP2,IE6.0
请各位大侠指点!!!!!!!!!!!!!!!!!!!!!!!!!!!