ASP.NET中实现打印
怎样才可以调用打印机进行打印并且对纸张类型进行设置呢?
---------------------------------------------------------------
<OBJECT id="WebBrowser" height="0" width="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>
<script language="javascript">
function frmLoad()
{
WebBrowser.ExecWB(8,1);
WebBrowser.ExecWB(6,6);
}
</script>
---------------------------------------------------------------
直接调用IE的打印设置;
window.print();
---------------------------------------------------------------
<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 id=WebBrowser>
</OBJECT>
<script language="javascript" for=window event=onload>
self.focus();
WebBrowser.ExecWB(6,2);
</script>
---------------------------------------------------------------
Ie 6 not support WebBrowser
---------------------------------------------------------------
<OBJECT id="WebBrowser" height="0" width="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>
<script language="javascript">
function frmLoad()
{
WebBrowser.ExecWB(8,1);
WebBrowser.ExecWB(6,6);
}
</script>
---------------------------------------------------------------
直接调用IE的打印设置;
window.print();
---------------------------------------------------------------
<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 id=WebBrowser>
</OBJECT>
<script language="javascript" for=window event=onload>
self.focus();
WebBrowser.ExecWB(6,2);
</script>
---------------------------------------------------------------
Ie 6 not support WebBrowser
本文来自博客园,作者:古道轻风,转载请注明原文链接:https://www.cnblogs.com/88223100/archive/2008/04/15/1154961.html