打印gridview中的数据,js中是这样写的<script type="text/javascript">
function pritinf() {
var nw = window.open('', '', 'width=800,height=600');
nw.document.open("text/html", "GB2312");
nw.document.write('<link rel="stylesheet" type="text/css" href="css/css2.css" />');
nw.document.write('<body>');
nw.document.write("<object classid='CLSID:8856F961-340A-11D0-A96B-00C04FD705A2' id='wb'height='0' width='0'></object>");
nw.document.write(document.getElementById("print").outerHTML);
nw.document.write("<scrip" + "t>document.all.wb.ExecWB(6,6)</sc" + "ript>");
nw.document.write('</body>');
}
</script>ie打开的时候总是提示ie已经阻止此站点以不安全的方式使用activex控件,因此,此页面可能显示不正确。然后就不能打印了,请问怎样才能解决,谢谢
function pritinf() {
var nw = window.open('', '', 'width=800,height=600');
nw.document.open("text/html", "GB2312");
nw.document.write('<link rel="stylesheet" type="text/css" href="css/css2.css" />');
nw.document.write('<body>');
nw.document.write("<object classid='CLSID:8856F961-340A-11D0-A96B-00C04FD705A2' id='wb'height='0' width='0'></object>");
nw.document.write(document.getElementById("print").outerHTML);
nw.document.write("<scrip" + "t>document.all.wb.ExecWB(6,6)</sc" + "ript>");
nw.document.write('</body>');
}
</script>ie打开的时候总是提示ie已经阻止此站点以不安全的方式使用activex控件,因此,此页面可能显示不正确。然后就不能打印了,请问怎样才能解决,谢谢
解决方案 »
- 网络摄像头的调用
- 请教:如何在listview中第一列添加ID标识
- 在Visual Studio 2008 中,新增数据源DataSource时,数据源配置向导出现未预期的错误
- 达人帮助,c# 里 a.aspx页的OnClick触发b.aspx页的事件怎么做啊
- 截取字符串
- 裸体跪求各位大哥大姐,进来看下嘛!
- 难难难难难难题请有经验的c#高手指教!!!
- 一个关于com+的问题
- object转换ToString()报错
- DirectX 9.0 SDK is OUT!
- 不显示删除回复显示所有回复显示星级回复显示得分回复 pc做客户端,西门子acx32做服务器(加了一个通讯卡,据说是含opc服务的),如何通讯?
- 请问如何检测电脑进入待机和由待机进入系统,这两个产生的什么事件。
IE设置下 允许使用...
否则 就是这样