首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

webfrom打印(待.)

2012-03-09 
webfrom打印(在线等待.....)问题:word在IE中打开,请问怎么打印[解决办法]你如果是调用本地word的方式打开

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-->

热点排行
Bad Request.