flash批量打印方案

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

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

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

resID(报表资源id)、

serverPath(raq文件所属路径)、

params(报表参数)

 

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

如下代码即是将平台上的1.raq,2.raq和3.raq三个复杂报表作为批量打印对象(其中1.raq报表中含有两个参数arg0和arg1)

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文件中第34行js代码即是执行批量打印包装过程

rq_batchflashPrint(report_object);

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

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

 

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

 

 

JSP内容:

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

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

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

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

<%

 

%>

 

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

<html>

 <head>

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

   

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

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

        

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

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

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

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

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

 

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

 

 </head>

 

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

 

 </body>

</html>

<script type="text/javascript">

         varreport_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>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值