首页 > Web开发 > 详细

10_jasper return value from the subreport to main report

时间:2016-11-14 17:04:54      阅读:293      评论:0      收藏:0      [点我收藏+]

create a variable In subreport  say returnValue

variable class type --> whatever u want

calculation type --> nothing

reset type and increment type -->none

variable expression --> value you want to return

 

In main report create variable with same name as returnValue

variable class type --> same as return type

calculation type --> nothing

reset type and increment type -->none

variable expression --> blank

 

In main report  Subreport --> properties -->Subreport(other)-->subreport return values-->add

Subreport variable--> variable name as returnValue(u want to return) 

local destination variable --> main report variable (returnValue)

calculation type --> nothing

and use that variable wherever u want .

10_jasper return value from the subreport to main report

原文:http://www.cnblogs.com/liupuLearning/p/6062350.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!