第一步:添加下面的js

   <script type="text/javascript">
          function printsetup() {
              wb.execwb(8, 1);
          }
          function printsetup() {
              wb.execwb(9, 1);
          }
          function printsetup() {
              wb.execwb(10, 1);
          }
          function printpreview() {
              var wb = document.getElementById("wb");
              wb.ExecWB(7, 1);
          }
          function printit() {
              if (confirm("确定打印吗?")) {
                  wb.execwb(6, 6)
              }
          } 
 </script>

第二步:添加下面的input按钮

  <INPUT onclick="printpreview();" type="button"  value="打印"  class="btnSubmitG" name="button_show" />

第三步:添加下面的一句代码

 <div><OBJECT ></OBJECT></div>(加在table外面form里面就行了)

第四步:在工具里面修改ActiveX的设置改一下就行了;(修改为启用或禁用)

 

相关文章:

  • 2022-12-23
  • 2021-10-27
  • 2021-09-07
  • 2021-11-14
  • 2021-12-19
猜你喜欢
  • 2022-12-23
  • 2021-12-06
  • 2022-02-07
  • 2021-08-21
  • 2022-12-23
  • 2021-08-31
相关资源
相似解决方案