在vs2008 中,想把mschart显示的图形打印出来,求源码? 

解决方案 »

  1.   

    IE打印<OBJECT   id=WebBrowser   classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2   height=0   width=0></OBJECT>   
      <input   type=button   value=打印           onclick=document.all.WebBrowser.ExecWB(6,1)>   
      <input   type=button   value=直接打印   onclick=document.all.WebBrowser.ExecWB(6,6)>   
      <input   type=button   value=页面设置   onclick=document.all.WebBrowser.ExecWB(8,1)>   
      <input   type=button   value="打印OK"   onclick="   return   myprint(this);">                         
      <input   type=button   value=打印预览   onclick=document.all.WebBrowser.ExecWB(7,1)> 打印区域。<html>
    <head>
    <style type="text/css" media=print>
    .noprint{display : none }
    </style>
    </head>
    <body>
    <div class="noprint">不打印的部分</div>
    <div>打印的部分</div>
    <div class="noprint">不打印的部分</div>
    </body>
    </html>
      

  2.   

    IE打印 我试过了,mschart控件显示的图形在IE打印预览中显示不出来。