<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
请各位大侠指点!!!!!!!!!!!!!!!!!!!!!!!!!!!
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
请各位大侠指点!!!!!!!!!!!!!!!!!!!!!!!!!!!
解决方案 »
- 弹出层 输入框 js
- 在iis中设置了一个自定义的404页面,为什么点击不存在页面时,老是跳到搜搜网页上去了啊?
- 下载文件时,不出现下载文件对话框,直接把文件下载到指定目录?
- 菜鸟的页面显示问题
- asp.net中调用JavaScript的错误
- 如何实现网站首页的访问量统计?
- 在C#中有那些字符串处理函数呀!
- 思归及各路高手,datagrid里的dropdownlist的事件还是不执行啊,帮忙看看吧
- 菜鸟问个弱弱的问题:VS2010中,默认主页Default.aspx可以只用HTML和Javascript编写吗?
- OracleClient:在.NET Form上连接Oracle9i数据库没问题,但在ASP.NET下连接说"无法加载 DLL (oci.dll)"?把oci.dll重新注册后,出错:无法
- 请问我怎么调用dll 文件
- 高分求解一个日期比较的问题 救命。。
==
不就是重新加载一次吗?