jasperreport生成pdf_jasperreport 导出excel_jasperreport json(65)

电脑杂谈  发布时间:2017-02-04 10:28:36  来源:网络整理

data, using one of the fillReportXXX() methods exposed by the

dori.jasper.engine.JasperFillManager class (see the 3.4 Filling Reports chapter to refresh

your memory).

This can be achieved if you use the <parametersMapExpression> element, which introduces the

expression that will be evaluated in order to obtain the specified parameter map. This expression should

always return a java.util.Map object in which the keys are the parameter names.

In addition to or instead of supplying the parameter values in a map, you can supply the parameter

values individually, one by one, using a <subreportParameter> element for each parameter you are

interested in. In such case, you have to specify the name of the corresponding parameter using the

mandatory name attribute and you have to provide an expression that will be evaluated at runtime to

obtain the value for that particular parameter, value that will be supplied to the subreport filling

routines.

Note that you can use both ways to provide subreport parameter values, simultaneously. When this

happens, the parameter values specified individually, using the <subreportParameter> element, will

override the parameters values present in the parameter map, that correspond to the same subreport

parameter. If the map does not contain corresponding parameter values already, the individually

specified parameter values will be added to the map.

Attention! When you supply the subreport parameter values, you have to be aware that the


本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/ruanjian/article-30468-65.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...