关于drawing 的打印 <body onload="window.print()"> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <style>@media print { .ptn {display:block;} .notptn {display:none;}}</style><div class="notptn"> 不打印</div><div class="ptn"> 打印</div><A href="javascript:doprint()">【打印该页】</A>放到一个页面打印预览看一下。。你重要在aspx页面将你的打印按钮 的CssClass="notptn"即可 <script language="javascript"> <!-- function myprint(f) { f.style.visibility = 'hidden'; document.all.item("btnClose").style.display="none"; //document.Form1.btnClose.display="none"; //document.Form1.btnClose.visibility = 'hidden'; document.all.WebBrowser.ExecWB(7,1); f.style.visibility = 'visible'; window.opener = null; window.close(); this.visible = false; return true; } function myclose(){ window.opener = null; window.close(); return true; } // --> </script><INPUT id="btnPrint" style="BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BACKGROUND-COLOR: transparent; TEXT-DECORATION: underline; BORDER-BOTTOM-STYLE: none" onclick=" return myprint(this);" type="button" value="打 印"> net_lover(孟子E章) 你说的那个要写在哪里?能具体一点吗???我的意思是把画图的这部分功能直接画到打印机上,请问方法可行吗??? chenee543216(奋斗成就男人!) 你的方法是打印一页???我的意思是把画图的这部分功能直接画到打印机上 <html><head><title>Untitled Document</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><body bgcolor="#FFFFFF" text="#000000" ><table width="91%" border="1" cellspacing="0" cellpadding="0"> <tr> <td width="23%"><b><font size="5">dffgdfg</font></b></td> <td width="25%"><b><font size="5">dfgdfg</font></b></td> <td width="26%"><b><font size="5">dfgdf</font></b></td> <td width="26%"><b><font size="5">dddddddddd</font></b></td> </tr></table><object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object><input type="button" name="Button" value="打印预览" onClick="document.all.WebBrowser.ExecWB(7,1)"><input type="button" name="Button1" value="打印" onClick="javascript:window.print()"></body>这个应该是可以打印出整个aspx页面吧·!!如何把我画图的这部分功能直接画到打印机上 急 在线等待! .net问题 如何控制table表格中控件的位置 今天参加一家公司的考试,给出的一道编程题,拿上来和大家一起看看 求像iewebcontrols一样的控件,不过功能要增强,如背景可以换,谁能提供源码吗? 后面的扩展名为.aspx.resx的文件是做什么用的。 在win 2003+iis6引用一个c++库,出错 如何图片上描点轨迹问题,鼠标移动到圆点上显示出详细信息? 求大神啊 救救我吧 被折腾死了 请高手帮我看看这个错误 大家好,我是菜鸟,有一个对你们来说很简单的问题请教? 用file类对网络路径上的文件进行操作可以吗? 有做过电子商务网站经验的高手们,多多指教!
<style>
@media print {
.ptn {display:block;}
.notptn {display:none;}
}
</style>
<div class="notptn"> 不打印</div><div class="ptn"> 打印</div><A href="javascript:doprint()">【打印该页】</A>放到一个页面打印预览看一下。。
你重要在aspx页面将你的打印按钮 的CssClass="notptn"即可
<!--
function myprint(f) {
f.style.visibility = 'hidden';
document.all.item("btnClose").style.display="none";
//document.Form1.btnClose.display="none";
//document.Form1.btnClose.visibility = 'hidden';
document.all.WebBrowser.ExecWB(7,1);
f.style.visibility = 'visible';
window.opener = null;
window.close();
this.visible = false;
return true;
}
function myclose(){
window.opener = null;
window.close();
return true;
}
// -->
</script>
<INPUT id="btnPrint" style="BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BACKGROUND-COLOR: transparent; TEXT-DECORATION: underline; BORDER-BOTTOM-STYLE: none" onclick=" return myprint(this);" type="button" value="打 印">
chenee543216(奋斗成就男人!) 你的方法是打印一页???我的意思是把画图的这部分功能直接画到打印机上
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<body bgcolor="#FFFFFF" text="#000000" >
<table width="91%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td width="23%"><b><font size="5">dffgdfg</font></b></td>
<td width="25%"><b><font size="5">dfgdfg</font></b></td>
<td width="26%"><b><font size="5">dfgdf</font></b></td>
<td width="26%"><b><font size="5">dddddddddd</font></b></td>
</tr>
</table>
<object id="WebBrowser" width=0 height=0
classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
</object>
<input type="button" name="Button" value="打印预览" onClick="document.all.WebBrowser.ExecWB(7,1)">
<input type="button" name="Button1" value="打印" onClick="javascript:window.print()">
</body>
这个应该是可以打印出整个aspx页面吧·!!如何把我画图的这部分功能直接画到打印机上