这个问题我很是头疼的 不向asp可以编客户端控件。根据我的经验 这主要是分页的问题 。。 
用表格了 长宽都固定格式 。然后用 
page-break-after=always 
强制分页再就是 webbrowser 控件,不过我看不行 :
<object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"> 
</object> 
<SCRIPT> 
function window.onbeforeprint(){ 
alert("打印前事件"); 

function window.onafterprint(){ 
alert("打印后事件"); 
closes.Click(); 
} 如果有好方法 告诉我啊

解决方案 »

  1.   

    <html>
    <head>
    <title>打印</title>
    <script language="javascript">
    window.onbeforeprint=p_before
    window.onafterprint=p_after function printsetup(){
    // 打印页面设置
    wb.execwb(8,1);
    }
    function printpreview(){
    // 打印页面预览
    wb.execwb(9,1);
    }
    function p_before()
    {
    ashow.style.visibility="hidden"
    } function p_after()
    {
    alert("打印完毕");
    } function printit()
    {
    if (confirm('确定打印吗?')) {
    wb.execwb(6,6)
    //window.print();
    ashow.style.visibility="visible"
    }
    }
    </script>
    </head>
    <body>
    <OBJECT classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height=0 id=wb name=wb width=0></OBJECT>
    <table width=98% class=tabletoolbar border=0 cellspacing="1" cellpadding="0" align=center>
    <!--这个表格理的内容是不会被打印出来的-->
    <tr id=ashow name=ashow>
    <td align=right>
    <input type=button class="button" name=button_print value="打印" onclick="javascript:printit()">
    <input type=button class="button" name=button_setup value="打印页面设置" onclick="javascript:printsetup();"> 
    <!--<input type=button name=button_preview value="打印页面预览" onclick="javascript:printpreview();">!-->
    <input type=button class="button" name=button_fh value="关闭" onclick="javascript:window.close();">
    </td>
    </tr>
    </table>
    这里可以添加你想打印的内容
    </body>
    </html>
    试试吧
      

  2.   

    接调用客户端的excel,word进行报表的编辑、打印
      

  3.   

    http://expert.csdn.net/Expert/topic/1428/1428024.xml?temp=3.814334E-02