保存就调BEAN里的方法吗!!
打印是用excel吗??

解决方案 »

  1.   

    <input type="button" value="print" onclick="window.print()">
    javascript是不允许对客户端文件系统进行操作的
      

  2.   

    <body>
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
    if (window.print)
    {
    document.write('<form>'+ '<input type=button name=print value="打印页面" '
    + 'onClick="javascript:window.print()"></form>');
    }
    // End -->
    </script>
    <form>
    Hello
    </form>
    </body>
      

  3.   

    <input type="button" value="打印" onclick="window.print()">