产品介绍

推荐内容

快逸做的更好

产品优势

您的位置: 首页 > 知识库> 打印专题> Flash批量打印

Flash批量打印

Flash批量打印,使用如下内容新建jsp,就可以使用批量打印功能了

JSP页面其中第38行为包装批量打印对象,其中有 4个参数分别是

reportType报表类型,其值“18”代表复杂报表)、

resID(报表资源id)、

serverPathraq文件所属路径)、

params(报表参数)

 

resIDserverPath选其一即可,集深V5平台可获取resID或者serverPath,如果是V4集成srvr形式选择serverPath参数即可。

如下代码即是将平台上的1.raq2.raq3.raq三个复杂报表作为批量打印对象(其中1.raq报表中含有两个参数arg0arg1

report_object=[{"reportType":"18","resID":"","serverPath":"/mis2/reportcenter/res/flexdesigner/reportFiles/1.raq","params": "&arg0=1&arg1=2"},{"reportType":"18","resID":"","serverPath":"/mis2/reportcenter/res/flexdesigner/reportFiles/2.raq"},{"reportType":"18","resID":"","serverPath":"/mis2/reportcenter/res/flexdesigner/reportFiles/3.raq"}];

jsp文件中第34js代码即是执行批量打印包装过程

rq_batchflashPrint(report_object);

页面即会展现批量打印页面

Flash批量打印

其中三页分别代表其中一张报表,如单张报表即已分页将会全部预览展现。

 

点击左上方打印即可完成批量打印。

 

 

JSP内容:

<%@page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@page import="com.runqianapp.schedule.utils.PathUtils"%>

<%@page import="com.runqianapp.common.log.GEZLoggerManager"%>

<%@page import="com.runqianapp.showReport.IShowReport"%>

<%

 

%>

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

  <head>

    <title>SR测试页面</title>

   

         <link rel="stylesheet" type="text/css" href="<%=PathUtils.getRelativeJspUrl(request,"/gezComponents/jquery/jqueryui/jqueryuicss/jqueryui.css") %>" />

         <link rel="stylesheet" type="text/css" href="<%=PathUtils.getRelativeJspUrl(request,"/gezComponents/popupDiv/css/jquery.popup.css") %>" />

        

         <script type="text/javascript" src="<%=PathUtils.getRelativeJspUrl(request,"/gezComponents/jquery/jquery.js") %>"></script>

         <script type="text/javascript" src="<%=PathUtils.getRelativeJspUrl(request,"/gezComponents/jquery/jqueryui/jqueryuijs/jqueryui.js") %>" ></script>

         <script type="text/javascript" src="<%=PathUtils.getRelativeJspUrl(request,"/gezComponents/popupDiv/showDialog.js") %>"   ></script>

         <script type="text/javascript" src="<%=PathUtils.getRelativeJspUrl(request,"/gezComponents/jsUtils/Base64.js") %>"></script>

         <script type="text/javascript" src="<%=PathUtils.getRelativeJspUrl(request,"/gezFlashPrint/js/raqFlashPrint.js") %>"   ></script>

 

         <script type="text/javascript"></script>

 

  </head>

 

  <body style="margin-top:0px">

 

  </body>

</html>

<script type="text/javascript" >

         var report_object = null;

report_object=[{"reportType":"18","resID":"12745","serverPath":"","params":"&arg0=1&arg1=2"},{"reportType":"18","resID":"12746","","params":"&arg0=3&arg1=4"},{"reportType":"18","resID":"12747","serverPath":"","params":"&arg0=5&arg1=6"}];

         rq_batchflashPrint(report_object);

</script>