润乾报表如何实现批量打印

 

润乾报表如何实现批量打印,点击一次,打印多张报表?

解决方法:
主要代码如下:


<%        request.setCharacterEncoding( "GBK" );

    String report = request.getParameter( "report" );

    if( report == null || report.trim().length() == 0 ) throw new Exception( "report=null" );

          String prompt = request.getParameter( "prompt" );

    String appmap = request.getContextPath();

    String serverPort = String.valueOf( request.getServerPort() );

          String serverName = request.getServerName();

          String appRoot = "http://" + serverName + ":" + serverPort + appmap;

%>  

  <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"  codebase="<%=appRoot%>/jre-6u24-windows-i586.exe#Version=1,6,2,0" width="40" height="16" id="report1_directPrintApplet" style="vertical-align:middle">  

    <param name="name" value="report1_directPrintApplet">

    <param name="code" value="com.raqsoft.report.view.applet.DirectPrintApplet.class">  

    <param name="archive" value="<%=appmap%>/raqsoftReportApplet.jar">

    <param name="type" value="application/x-java-applet;version=1.6">

    <param name="appRoot" value="<%=appRoot%>">

    <param name="dataServlet" value="/reportServlet?action=1">

    <param name="srcType" value="file">

    <param name="fontFace" value="宋体">

    <param name="fontSize" value="18pt">  

    <param name="fontColor" value="#000000">  

    <param name="backColor" value="#11111111">

                <param name="icon" value= "<%=appmap%>/images/print.gif">

    <param name="label" value="dayin">

    <param name="needPrintPrompt" value="<%=prompt%>">

    <param name="scriptable" value="true">

  </object>

  &nbsp;&nbsp; <a href="javascript:window.close()" class="style3 style5">取消</a>

<script language=javascript>

  function raqsoft_getPrintReports() {

  return "<%=report%>";

  }

</script>

PS: 如果需要实现不点击按钮触发批量打印,只需要修改一行代码即可:

<param name="code" value="com.raqsoft.report.view.applet.DirectPrintWithoutShow.class">