webfrom打印(在线等待.....)
问题:
word在IE中打开,请问怎么打印
------解决方案--------------------你如果是调用本地word的方式打开可以直接对word进行打印
------解决方案-------------------- <script language= "javascript " type= "text/javascript ">
function preview()
{
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.document.body.style.backgroundColor = '#ffffff ';
//window.document.body.style.color = '#000000 ';
window.print();
}
</script>
<input type= "button " name= "print " value= "预览并打印 " onclick= "preview() " />
<!--startprint-->
这里放你要打印的内容
<!--endprint-->