<BODY>
<SCRIPT LANGUAGE=javascript>
<!--
function setPrint(){
WB.ExecWB(8,1);
}
function previewPrint(){
WB.ExecWB(7,1)
}
//-->
</SCRIPT>
<table width='100%'>
<tr>
 <OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WB width=0>
</OBJECT>
<INPUT type="button" value="打印设置" id=button1 name=button1 onclick="setPrint();">
<INPUT type="button" value="打印预览" id=button2 name=button2 onclick="previewPrint();">
</tr>
<tr>
</table>//下面是你的财务报表
</BODY>

解决方案 »

  1.   

    用FineReport 吧
    http://www.finereport.com
      

  2.   

    <table width='100%' id="oper">function setPrint(){
    document.getElementById("oper").style.display = 'none';
    WB.ExecWB(8,1);
    }
    function previewPrint(){
    document.getElementById("oper").style.display = 'none';
    WB.ExecWB(7,1)
    }
    这样试试!!!
      

  3.   

    jasperreports
    很经典的报表制作工具,但不代表打印。打印可以用js实现。最简单的就是print()即可。
      

  4.   

    谢谢!还有比较急的是!!!!!!!!!有没有JSP生成报表的实例啊!