试试JavaCellREport. http://www.javatoolsoft.com
比Cell功能强大多了,完全基于java网络报表..目前这有英文版本,7月20号将发布中文版本,除了界面完全汉化之外,还包括一个非常详细的中文帮助文档.. 看来加土软件公司将完全加入中国报表市场的角逐..

解决方案 »

  1.   

    http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/hosting/printpreview/reference/behaviors/headerfooter.asp
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnie55/html/beyondprintpreview.asp
      

  2.   

    <OBJECT classid=clsid:1663ed61-23eb-11d2-b92f-008048fdd814 codeBase=ScriptX.cab#Version=5,60,0,375 id=factory style='DISPLAY: none' viewastext></OBJECT>
    <SCRIPT Language='JavaScript'>
    function printReport() {
    prin.style.display = 'none';
    prin.style.visibility = 'hidden';
    if ( !factory.object ) {
       window.print();
    } else {
    document.factory.printing.header = '';
    document.factory.printing.footer = '';
    document.factory.printing.leftMargin = 0.25;
    document.factory.printing.topMargin = 1.5;
    document.factory.printing.rightMargin = 0.25;
    document.factory.printing.bottomMargin = 1.5;
    self.factory.printing.Print(true);
    }}
    </SCRIPT>