India

ZestyBeanz Technologies Pvt Ltd 4th Floor, Nila, Technopark Thiruvananthapuram,
India – 695581
Phone: +91 471 4063254
Fax : +91 471 2700171

   .

ZestyBeanz Technologies Pvt Ltd
61/3236, Manikkath Cross Road
Ravipuram, Kochi, India - 682016
Phone: +91 484 4063254

  UAE

Zesty Labs
Office # 2003, Millennium Plaza Building
Sheikh Zayed Rd, Dubai, UAE
Phone: +971 4333 2222​
Mobile: +971-52-7553466

  Germany​

ZestyBeanz Technologies GmbH
Reuterstraße 1
90408 Nürnberg
Fon: +49 911 4801 444
Fax: +49 911 4801 445

Subreports in Jasper Reports

Contact Form


Shelton's picture

Subreports in Jasper Reports

Subreport is an advanced feature of Jasper Reports and is used to design complex reports. Subreport is a report inside another report. The datasource connection used by the Subreport is same as the parent report.

 

 

From the iReport Designer palette, we can select the subreport element and drop it in the master report to create a subreport. Now a subreport wizard opens which gives the option to create a new report or modify existing report. Here, we can define the data source connection also. Once the subreport is created, we can add fields to the subreport as in a normal report.

 

Now, the subreport element is added in the main report.

 

Now, select the properties of the subreport and set the 'Connection type' as 'Use a DataSource Expression' and  'Data Source Expression' as  '$P{SR_DATA_SOURCE}' (any name as you wish)  with the parameter class as java.lang.Object. With these parameters set, we can create a subreport inside a master report.

priyanka's picture

how i can add parameter in

how i can add parameter in openerp using jasper report?

Anonymous's picture

Hi, I am trying to add a sub

Hi, I am trying to add a sub report to my main report and it compiles but my sub-report is not visible when i run it with the main report. Individually the sub report runs fine by itself.
I am passing a parameter map and no connection to the main report and am not sure what i should pass as the Connection Type and Data Source Expression. I tried passing ${SR_DATA_SOURCE} as you suggested but the compiler complains that it can't find the parameter. Am i missing something?? Thanks!