实现打印
在win7系统下,c#,如何实现打印。。需要详细些 --------------------编程问答--------------------<input id="btnPrint" type="button" value="预览打印" onclick="doPrint();" class="button" style="height:26px"/>--------------------编程问答-------------------- window.print --------------------编程问答--------------------
function doPrint()
{
bdhtml=window.document.body.innerHTML;
sprnstr="<!--startprint-->";
eprnstr="<!--endprint-->";
prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17);
prnhtmlprnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));
window.document.body.innerHTML=prnhtml;
window.print();
}
Up````````
补充:.NET技术 , C#