how to pass jasper file path to subreport of subreport

前端 未结 4 1322
没有蜡笔的小新
没有蜡笔的小新 2020-12-03 16:30

I am using iReport tool in conjunction with JasperReports 1.3.4.

I have a master report, which contain two subreports. One of these subreports has an embedded subrep

4条回答
  •  情深已故
    2020-12-03 16:53

    As Marcio already explained, your SUBREPORT_DIR parameter has to be passed from the calling report to the subreport. Using relative path with .or ./ is not reliable, an absolute path is always to prefer.

    So you have to write in your jrxml file:

    
        
            
        
        
    
    

    You have to pass the subreportParameterExpression with the $P{SUBREPORT_DIR}, elswise it won't pass the parameters (only setting is not enough).

提交回复
热议问题