调用windows打印机
来源:互联网 发布:linux中ping命令 编辑:程序博客网 时间:2024/06/05 23:56
<head>
<script language="JavaScript">
<!--
function doPrint() {
bdhtml = window.document.body.innerHTML;
sprnstr = "<!--startprint-->";
eprnstr = "<!--endprint-->";
prnhtml = bdhtml.substr(bdhtml.indexOf(sprnstr) + 17);
prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr));
window.document.body.innerHTML = prnhtml;
window.print();
location.reload();
}
//-->
</script>
</head>
<body>
<!--startprint-->
<table width="700" align="left" border="1">
<tr>
<td>待打印的内容</td>
</tr>
</table>
<!--endprint-->
<input type="button" onclick="doPrint()">
</body>
<script language="JavaScript">
<!--
function doPrint() {
bdhtml = window.document.body.innerHTML;
sprnstr = "<!--startprint-->";
eprnstr = "<!--endprint-->";
prnhtml = bdhtml.substr(bdhtml.indexOf(sprnstr) + 17);
prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr));
window.document.body.innerHTML = prnhtml;
window.print();
location.reload();
}
//-->
</script>
</head>
<body>
<!--startprint-->
<table width="700" align="left" border="1">
<tr>
<td>待打印的内容</td>
</tr>
</table>
<!--endprint-->
<input type="button" onclick="doPrint()">
</body>
阅读全文
0 0
- 调用windows打印机
- C#调用Windows添加打印机向导
- C#调用Windows添加打印机向导
- windows下如何用cmd命令调用USB打印机打印
- VB调用打印机属性
- 调用打印机,js
- WebService 调用打印机
- C# 调用打印机
- js调用打印机打印
- java 调用打印机程序
- Qt调用打印机
- iOS 调用打印机
- Ios 调用打印机2
- ios调用打印机
- js调用打印机服务
- Qt 调用打印机参考
- jQuery调用打印机
- AX代码调用打印机
- Ubuntu用户ssh远程连接问题
- 【Java】一次Eclipse插件修改经历
- Windows and GPT FAQ
- return 在Java中作用
- spring4 + redis 零配置文件
- 调用windows打印机
- 准确率与召回率(Precision & Recall)、F-score
- c++的一些记不住的特性= =
- Halcon学习(五)手眼标定之眼在手外
- HTML初涉
- mysql添加表注释、字段注释、查看与修改注释
- RMQ问题 在线算法-ST算法
- hibernate创建数据库
- HTML的基础框架