JasperServer: Unable to locate the subreport exception

前端 未结 4 801
无人共我
无人共我 2020-12-10 20:02

I searched for a couple of days to fix this bug with nothing new.

I had a report which include multi-level subreports everything works fine on iReport 3.7.5

4条回答
  •  旧巷少年郎
    2020-12-10 20:19

    Not sure if this mechanism works in all cases but it certainly works for JasperSoft Studio 5.6.0 and Jasper Reports Server 5.6.0.

    Essentially we need a simple way to detect that we are running on the server - I use the presence (or absence) of the $P{REPORT_CONTEXT} parameter which experiments show is present on the server but not present during preview.

    
        
        
    
    

    Once you have that you can then define the location of your subreport from a choice of two:

    
        
        
    
    

    And then include the sub report:

    
    

    You can then use Preview in studio and all still works when you deploy to server.

提交回复
热议问题