想直接把Repeater中的数据打印 有什么好的方法吗 想直接把Repeater中的数据打印 有什么好的方法吗 有好的思路也行 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 有具体的代码吗 function printPage() { var newWin = window.open('printer','',''); //newWin.moveTo(10000,10000); var titleHTML = document.getElementById("printdiv").innerHTML; newWin.document.write(titleHTML); newWin.document.location.reload(); newWin.print(); newWin.close();我写了一段不好用 <OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0></OBJECT> <input type=button value=打印 onclick=document.all.WebBrowser.ExecWB(6,1)> <input type=button value=直接打印 onclick=document.all.WebBrowser.ExecWB(6,6)> <input type=button value=页面设置 onclick=document.all.WebBrowser.ExecWB(8,1)> <input type=button value="打印OK" onclick=" return myprint(this);"> <input type=button value=打印预览 onclick=document.all.WebBrowser.ExecWB(7,1)> 设置打印区域<html><head><style type="text/css" media=print>.noprint{display : none }</style></head><body><div class="noprint">不打印的部分</div><div>打印的部分</div><div class="noprint">不打印的部分</div></body></html> asp.net UpdatePanel 下的问题 求助:XML序列化带命名空间 求救,清除COOKIE问题 为什么,我的treeview不能折叠 我想做一个论坛,各板能够独立增加一些字段和逻辑(可以看作插件),大家提些建议吧 调试oa系统源码时出的错误,请高手指点 asp.net中关于提交用户登陆请求的3问题(请帮忙) IIS7.0上配置网站怎样设置相对路径? 求助:想实现如下功能 大家看看这个效果怎么做的 HtmlControls和WebControls效率差异 asp.net模板引擎
var newWin = window.open('printer','','');
//newWin.moveTo(10000,10000);
var titleHTML = document.getElementById("printdiv").innerHTML;
newWin.document.write(titleHTML);
newWin.document.location.reload();
newWin.print();
newWin.close();我写了一段不好用
<input type=button value=打印 onclick=document.all.WebBrowser.ExecWB(6,1)>
<input type=button value=直接打印 onclick=document.all.WebBrowser.ExecWB(6,6)>
<input type=button value=页面设置 onclick=document.all.WebBrowser.ExecWB(8,1)>
<input type=button value="打印OK" onclick=" return myprint(this);">
<input type=button value=打印预览 onclick=document.all.WebBrowser.ExecWB(7,1)> 设置打印区域<html>
<head>
<style type="text/css" media=print>
.noprint{display : none }
</style>
</head>
<body>
<div class="noprint">不打印的部分</div>
<div>打印的部分</div>
<div class="noprint">不打印的部分</div>
</body>
</html>