Jump to content
Changes to the Jaspersoft community edition download ×

How to load subreport from jasper file


Recommended Posts


I have main report say abc.jasper.

I have one more report say subrpt.jsper.

Now i want to use subrpt.jasper as a subreport in main abc.jasper report by using Jasper Report API's.


i am loading abc.jasper by Jasper Report API and doing some modifications by converting the loaded abc.jasper file into JasperDesign object.


Now while modifying main report i also wants to add subrpt.jasper file as a subreport for my main report in column footer band and pass some parameter for subreport.


can anybody knows how to do it by using Jasper Report API's or Java.


Please it's urgent..........



Ritesh Kumar

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

This is not a JasperServer question.


Have a look at using the net.sf.jasperreports.engine.design.JRSubreport* classes. These allow you to manage subreports in the design process and insert them into the JasperDesign object.





Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...