如何用asp.net制作web网页打印局部内容!有那些方案呢?具体代码实例?
比如:我要打印网站上的指定那篇文章,要实现这样的打印效果!该怎么解决呢?
谢谢大家的帮助和支持?

解决方案 »

  1.   

    把文章放到DIV里,打印时把其它内容全部 display="none", 这样调用页面打印方法会只打文章。
      

  2.   

    不打印的加这个css
    <style media=print> 
    .Noprint{display:none;} 
    </style> 
      

  3.   

    <%-- <script language="javascript" type="text/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();    
    }    
    </script> --%>
      

  4.   

    把指定的内容取出来就行了 
    我有这有DEMO 不过 你要自己修改下http://download.csdn.net/source/1861625
      

  5.   

    webbrower打印 
    直接打印window.print() 
    调用Office导出word,excel等实现打印 
    crystalrepeat http://topic.csdn.net/u/20090921/20/625a532c-1c97-4bfb-bdf1-7a1ab04fd797.html
      

  6.   

    方法很简单的
    直接打印window.print() 
    调用Office导出word,excel等实现打印 
    crystalrepeat